There possibly is a bug in the "ExecuteSave" function of Apprentice.
When we save an assembly with Apprentice (with VBA in Excel), and the assembly contains suppressed parts, Apprentice will exchange apparently random parts with other parts in the assembly.
For saving (with VBA in Excel) we use "FileSaveAs.AddFileToSave()" and "FileSaveAs.ExecuteSave".
Inventor Pro 2024
Build: 272, Release: 2024.2
Solved! Go to Solution.
There possibly is a bug in the "ExecuteSave" function of Apprentice.
When we save an assembly with Apprentice (with VBA in Excel), and the assembly contains suppressed parts, Apprentice will exchange apparently random parts with other parts in the assembly.
For saving (with VBA in Excel) we use "FileSaveAs.AddFileToSave()" and "FileSaveAs.ExecuteSave".
Inventor Pro 2024
Build: 272, Release: 2024.2
Solved! Go to Solution.
Solved by nboelens. Go to Solution.
Today I tried to make a few images to visualize the issue, but I can no longer reproduce the bug.
Yesterday I still could reproduce it with different assembly's so I decided to make this forum post. Copying designs with our copy-tool is an important part of our workflow, we have to be able to trust the copy's that are being made with it.
Maybe it was a freak incident and it will never happen again...
Today I tried to make a few images to visualize the issue, but I can no longer reproduce the bug.
Yesterday I still could reproduce it with different assembly's so I decided to make this forum post. Copying designs with our copy-tool is an important part of our workflow, we have to be able to trust the copy's that are being made with it.
Maybe it was a freak incident and it will never happen again...
Hello @chrisw01a,
I don't know what issues you are having with ModelStates, but in the link below you can see the solution that helped us with our copy-tool.
Solved: Re: Modifying files with ModelStates via Apprentice not possible
In short:
Replace PropertySets with FilePropertySets
Use oApprDoc.FilePropertySets.FlushToFile to write the properties to the file
Hello @chrisw01a,
I don't know what issues you are having with ModelStates, but in the link below you can see the solution that helped us with our copy-tool.
Solved: Re: Modifying files with ModelStates via Apprentice not possible
In short:
Replace PropertySets with FilePropertySets
Use oApprDoc.FilePropertySets.FlushToFile to write the properties to the file
Can't find what you're looking for? Ask the community or share your knowledge.