Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Apprentice ExecuteSave bug with suppressed parts in assembly

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
nboelens
231 Views, 3 Replies

Apprentice ExecuteSave bug with suppressed parts in assembly

nboelens
Contributor
Contributor

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

 

 

0 Likes

Apprentice ExecuteSave bug with suppressed parts in assembly

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

 

 

Labels (5)
3 REPLIES 3
Message 2 of 4
nboelens
in reply to: nboelens

nboelens
Contributor
Contributor
Accepted 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...

 

0 Likes

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...

 

Message 3 of 4
chrisw01a
in reply to: nboelens

chrisw01a
Collaborator
Collaborator
We also use a "copy-tool" programmed in VB.net that uses Apprentice. How are you handling model states with yours?
0 Likes

We also use a "copy-tool" programmed in VB.net that uses Apprentice. How are you handling model states with yours?
Message 4 of 4
nboelens
in reply to: chrisw01a

nboelens
Contributor
Contributor

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

 

0 Likes

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.

Post to forums  

Autodesk Design & Make Report