Named Entities & Attributes in Inventor 2019

May 21, 2018 Randall Mabery

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:

 

Attribute Names

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

Randall Mabery

I love the technology, thoroughly enjoy helping people find solutions and believe in the software. I train individuals in the use of Autodesk design software such as Inventor and AutoCAD. The most satisfying part of my job is working on automation solutions for clients, assisting them in streamlining their design process and automating tasks.

Follow on Linkedin More Content by Randall Mabery
Previous Article
Can I do that with the Inventor API?
Can I do that with the Inventor API?

Quite often I am faced with a challenge to control something new with code. If you read my iLogic: Where do...

Next Article
Tips and Tricks for Using Fusion 360 CAM with a CNC Router
Tips and Tricks for Using Fusion 360 CAM with a CNC Router

I’ve never had issues with designing parts, but I’ve never really delved too much into the realm of CNC.