- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So I have an assembly which is made up of parametric template parts. Before I attempt to update the parameters I want to make sure that its using the latest version of the template, Which i can tell by using an Iproperty on the part.
Im able to delete the occurrence and the file in the file system but I keep having issues occur when try to create the new version.
originally I was trying to do this by opening the template part document and using .SaveAs but that threw an error, so instead I used vb.nets filesystem.filecopy. this allowed me to create a new file under the same name, but I began having errors when I tried to actually use it, such as:
- Part is referenced in another context
- Part has been updated elsewhere
What I think is happening is that somewhere the old version is being remembered/Referenced, but I don't know where. I make sure to both update and save the assembly and the subassembly if the part was in one, but I still get the errors. So maybe its being remembered somewhere else and I need to do an extra step??
Dose anyone else have another good method or some fix for this?
Solved! Go to Solution.