Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is it possible to use the inventory api to determine the entity name for the corner used in the assembly constraint??
Solved! Go to Solution.
Is it possible to use the inventory api to determine the entity name for the corner used in the assembly constraint??
Solved! Go to Solution.
Hi!
If by "corner" you mean a vertex or an edge that you have selected to set the constraint, then yes, it’s possible!
You just need to access the "EntityOne" or "EntityTwo" fields of that particolar constraint contained in the constraints list of AssemblyComponentDefinition.
oDoc.ComponentDefinition.Constraints.Item(i).EntityOne
Thank you for your answer.
Can't I get a name like edge_A shown in the picture?
Yes you can! Once you define the entity you want (e.g. oEdge), you can get the desired Assigned Name in this way:
EntityAttributeSet = oEdge.AttributeSets("iLogicEntityNameSet")
EntityName = EntityAttributeSet.Item("iLogicEntityName").Value
MsgBox(EntityName)
Hope it helps!
Thank you so much.
My problem has been solved perfectly