- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
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
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.