Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
clutsa
in reply to: martin_winkler

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