ExecuteSaveCopyAs and migration

ExecuteSaveCopyAs and migration

Anonymous
Not applicable
741 Views
5 Replies
Message 1 of 6

ExecuteSaveCopyAs and migration

Anonymous
Not applicable

Is the FileSaveAs object only available in apprentice? I'm using ExecuteSaveCopyAs in a standalone program to copy a design while changing the prefix of all the files. The problem is that this doesn't work when the files are not migrated to the current Inventor release. I would like to change this to an add-in and use the full Inventor program to copy the design. Is it possible to use a similar approach as with apprentice (creating a filelist and use ExecuteSaveCopyAs)?

 

Can someone point me in the right direction please?

 

Best regards, Daniël

0 Likes
Accepted solutions (1)
742 Views
5 Replies
Replies (5)
Message 2 of 6

manuel.lanthaler
Enthusiast
Enthusiast

Hi,

 

as far as i know you need to open each file in Inventor (visible /invisble) and call the SaveCopyAs on the opened document object.

Manuel

coolOrange
www.coolOrange.com
––––––––––––––––––
Please mark this response as "Accept as Solution" if it answers your question.
If you have found any post to be helpful, even if it's not a direct solution, then please provide that author kudos.


0 Likes
Message 3 of 6

ekinsb
Alumni
Alumni
Accepted solution

The FileSaveAs object is only available in Apprentice.  It is very convenient to use in the case where you're renaming a lot of files since it automatically creates the new files and updates all of the references so I much prefer to use it rather than try to do the equivalent using Inventor.  However, Apprentice does have the limitation that all of the files must be migrated to the current version.  My suggestion would be to use both Inventor and Apprentice.  Open the assembly in Inventor and use the Document.Save2 method to save the assembly and all of it's referenced documents so they will also be migrated to the current version and then use Apprentice to do the copy.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
Message 4 of 6

Anonymous
Not applicable

Thanks for the suggestion Brian

0 Likes
Message 5 of 6

Anonymous
Not applicable

Brian,

 

I encountered similar problem.

Your suggestion is good enough when we have only 3d files.

But now I have hundreds of drawing files and I found that I need to click "Ok" button on "Data Format Has Changed" dialog for each drawings.

 

Is there any option to disable "Data Format Has Changed" Dialog?

Is there any programming way to walk-around my problem?

Is there any tips to help my problem?

 

I am using Inventor 2015.

 

Any information will help me regardless of good news or bad.

Thanks.

 

Jaewon

0 Likes
Message 6 of 6

ekinsb
Alumni
Alumni

I don't have a drawing in this state to test with but I would first try using the Application.SilentOperation property.  If you set this to True then all pop-up dialogs like this should be supressed.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog