- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We have been using an Excel/VBA copy-tool to copy drawings with Apprentice Server for many years. This tool automates many tasks including changing iProperties and updating links.
Since we upgraded Inventor last week from 2020 to 2024 we get an error whenever we try to use this tool on assemblies that have got ModelStates. Error example: "Error -2147467259 (80004005) Method Value of object Property failed".
During debugging I can see that IsModifiable is False (in Apprentice). When I remove the extra Model States in Inventor, save the file, and open it again with Apprentice, I can see that IsModifiable has changed to True. Therefore I assume the Model State is responsible for the errors we are getting.
There are similar posts on the forum with this problem, but I haven't seen a solution that works for us. One of the proposed solutions mentions setting Toggle Edit Scope to Factory Scope. I can't do this, the only available options are kEditAllMembers and kEditAllMembers. I did try to change Toggle Edit Scope to All Model States in Inventor, but with no success, in Apprentice IsModifiable remains False and the error also remains.
Surprisingly Design Assistant doesn't have any issues with Model States. I have tried different situations (with/without ModelStates, Primary active/Custom active, All Model States active/Model State Only active) and every time it is possible to edit iProperties with Design Assistant. This makes me think there is a solution possible, I just haven't found it yet, and I could use some help on this.
How can we overcome this issue and make it possible again to use our Excel/VBA copy-tool on files with Model States?
As a workaround the tool now skips files with ModelStates, which means manually changing iProperties and exchanging links, but this is a very undesirable situation.
Thanks in advance,
Niels
Solved! Go to Solution.