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
I'd like to assign an appearance (color) to this named geometry thru an iLogic rule, Is that possible?
Posted by: Mike Diyer | 03/14/2019 at 09:39 AM
Hi Mike,
Yes, this is possible. Once you've found the geometry (there are a multitude of ways to do this), you can assign an Asset to the geometry. I can't go into great depth here but there are examples in the Inventor API Help.
Randy
Posted by: Randy | 03/14/2019 at 12:11 PM
Thanks Randy. This might be above my head... lol
But I'll look into it.
Posted by: Mike Diyer | 03/14/2019 at 03:17 PM
You can do it. If you need some more in-depth help, touch base with your IMAGINiT Account Executive and we'll get you going.
Posted by: Randy | 03/15/2019 at 06:27 AM