Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Hole Data

Innovator
Innovator

Hi all,

 

I tried to display the hole type with C#.

Why the three type of holes "Simple", "Threaded" and "Tapered" have the same type hole(igregularhole)?

 

***************************

application = (SolidEdgeFramework.Application)Marshal.GetActiveObject("SolidEdge.Application");
partDocument = application.ActiveDocument as SolidEdgePart.PartDocument;
holes = partDocument.HoleDataCollection;
if (partDocument != null)
{for (int i = 1; i <= holes.Count; i++)
{
holedata = holes.Item(i);
MessageBox.Show("Hole Name : " + holedata.DisplayName+ "\n Type Hole : " + holedata.HoleType);}

}

************************************

hole.PNG

Thanks.

Best regards,

1 REPLY 1

Re: Hole Data

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Hi Sonny_Ria,

 

I rather would traverse the Holes collection and for each Hole object would use its HoleData object to inspect its HoleType property. May be this solves your observations.

Kind regards,
Wolfgang Kunert - www.wksyspro.de