Message 1 of 7
How to save and close a .SAT extension file opened in Inventor through API's

Not applicable
03-20-2019
03:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I opened a .SAT extension file in Inventor and i modified the iproperties and trying to save the Assembly document but its not happening..
so can anyone know how to do that
code is as follows:
Inventor.Application InvApp = Activator.CreateInstance(Type.GetTypeFromProgID("Inventor.Application")) as Inventor.Application;
InvApp.Visible = true;
Inventor.AssemblyDocument AsmDoc = (Inventor.AssemblyDocument) InvApp.Documents.Open("Pathname");
********
*******
*****
AsmDoc.Save();
AsmDoc.SaveAs("pathname", true);
AsmDoc.Close(true);
InvApp.Quit();