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

Perhaps if you placed the Attribute or other identifier within the Part file or within the sub-assembly file, instead of within the ComponentOccurence within the main assembly, it would work better.  You would just have to dig a little deeper to get that Attribute or other identifier.

Also, in part files only, you can select a face, right click, and use 'Assign Name...'.  This makes it much easier to specify exactly which face you want within code environment.

When one component you're dimensioning in the drawing is removed from the assembly, is that component always replaced with another component, or not?  If it is getting replaced, you may be able to use a secondary code to assign the same Attribute to the new component, in order to maintain the functionality.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)