"Refreshing" iAssembly occurrences after creating new members
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I've been starting to experiment with using iAssemblies & iParts recently and I've come across an annoying limitation.
If the iAssemby & iPart tables are updated with new members, when I go into an assembly where I've already got that parent member placed, I have to replace it with itself in order to "refresh" the assembly. From what I've read on here, this is a known and intended limitation.
I can do this manually by either component replacing and selecting the same table member, or by expanding the browser node and right clicking the occurrence table to select Change Component. This isn't practical for when I have a large assembly with varying members, as I have to replace each one manually.
I'm trying to put together some code that will update each iassembly occurrence with itself instead of doing it manually. I've tried using the standard component.replace which doesn't work. I've tried using Component.ReplaceiPart which I think isn't working because It's an iAssembly. I've tried using iAssembly.ChangeRow to change it to the same row which doesn't work. I've also used the iAssembly.ChangeRow to switch to a different row and then switch back, which works for a brief second while the dummy row is in place, but goes back to being invisible once the original row is selected again.
If anybody has overcome this issue already, i'd really appreciate some help with this 😅
Thanks