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

Hey

 

Complicated. The solid body doesnt know what component its owned by, only the component knows that. When you rename a solid body, the named reference is downstreamed to the owning component(s) which can be seen when you expand the basemodel node in the browser

CompName.jpg

If i was to do this, i would probably have an assembly button to loop through the components and check the base model names against the current name. If they were different, save the component as a new component with the new name then replace the old with new, deleting the one replaced from file. If the component is in a sub assembly, you need to access the sub assembly first in order to change the component then look for other instances of the same component in the overall assembly to change them too.

 

Manually, you can Save and Replace the component in the assembly and use the new name. Save & Replace by code isnt the most straight forward process as its not exposed directly in the API

 

HTH

 

Nacho

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.