A few of my favorite new features in / additions to Inventor 2019 is the Assign Name command and using those assigned names in Constraints.
I’ve been using attributes for many years in order to “get” geometry that’s required, whether it be for the purposes of constraining, adding annotations to drawings, or just finding a specific feature.
The Assign Names command creates attribute sets and attributes with specific names. The AttributeSet is named “iLogicEntityNameSet” and the attribute is named “iLogicEntityName” with the value being whatever you name the entity. See example below:
I was curious how attributes that were created either programmatically or with AttributeHelper would interact with the new functions.
A few things to notice about attributes that are created either programmatically or with AttributeHelper:
· If named properly (see above), these attributes will show up in the graphics window (you may have to hide and unhide labels)
· By default, these attributes will not show in the Geometry Tab of the iLogic Browser Panel. If you rename it by using the right mouse click Edit Name, it will show in the Geometry Tab.
Attributes that are created either programmatically or with AttributeHelper can be used in the new 2019 Relationships (Add) snippets, as long as they are named as per above.
Thanks and Happy Coding!
Randy
About the Author
Follow on Linkedin More Content by Randall Mabery