11-05-2018
06:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
11-05-2018
06:13 AM
From what I can tell the feature property face name isn't new to the API it's the same stuff that's been there for years. The "new" part is simply that they added a user interface to make it easier to get to. The face names are stored using attributes and attributeSets.
Here's a rough idea how to get to them.
Dim part1Def As PartComponentDefinition = part1.Definition 'my part1 came from an assembly component occurrence
Dim oFaces As Faces = part1Def.SurfaceBodies(1).Faces
Dim tempFace As Face
For Each oFace In oFaces
AttSets = oFace.AttributeSets
If AttSets.NameIsUsed("iLogicEntityNameSet") Then
AttSet = AttSets.Item("iLogicEntityNameSet")
For Each Att In AttSet
If Att.Value() = "yourNamedFeature" Then 'change name here
tempFace = oFace
Logger.Debug("tempFaceID Set" & tempFace.InternalName)
End If
Next
End If
Next
If I've helped you, please help me by supporting this idea.
Mass Override for Each Model State
Custom Glyph Icon for iMates
Mass Override for Each Model State
Custom Glyph Icon for iMates