Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Experts,
I want to select a specific face from a part. But how can I determine which one I want?
For example, please see below, I want the highlight planar face and I have below codes to show the surface type of these faces but I donot know the index for this specific face.
Can someone help?
Dim PDoc As PartDocument = ThisApplication.ActiveDocument Dim PDComp As PartComponentDefinition = PDoc.ComponentDefinition Dim SB As SurfaceBody = PDComp.SurfaceBodies.Item(1) Dim oFaces As Faces = SB.Faces For i = 1 To oFaces.Count Dim oFace As Face = oFaces.Item(i) MessageBox.Show(oFace.SurfaceType.ToString, "SurfaceType") Next
Solved! Go to Solution.