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: duke

Hi @duke .

Here is a link to the online help page or adding a component into an assembly, while specifying 'options'.

ComponentOccurrences.AddWithOptions Method 

Basically you would have to create a new NameValueMap object ahead of that Add line, then set the needed name/value pairs within it, then supply that NameValueMap to the end of the Add line as specified in this link.  Have you ever created or worked with a NameValueMap before?

 

If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click (LIKE or KUDOS) :thumbs_up:.

If you have time, please... Vote For My IDEAS :light_bulb:or you can Explore My CONTRIBUTIONS

Inventor 2021 Help | Inventor Forum | Inventor Customization Forum | Inventor Ideas Forum

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)