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: 

Inventor2014 - SaveAs method doesn't work in VBA

1 REPLY 1
Reply
Message 1 of 2
chbulee
401 Views, 1 Reply

Inventor2014 - SaveAs method doesn't work in VBA

The following code error occurred while running.

 

Sub SaveAs()
   ' Set a reference to the active assembly document
   Dim oDoc As AssemblyDocument
   Set oDoc = ThisApplication.ActiveDocument

   Call oDoc.SaveAs("c:\temp\zzz.asm", True)  ----> this line
End Sub

 

Thanks

CB

1 REPLY 1
Message 2 of 2
Anonymous
in reply to: chbulee

A few things:

 - Try to be more specific, 'it doesn't work' isn't that helpful.

 - Verify that Inventor has write permission for the specified location (or try a different one).

 - Verify that the specified document doesn't already exist.

 - And last but not least, generally an Inventor assembly is saved in the .iam format 😉

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report