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: 

Savecopyas or export dwg from iam or ipt

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
Anonymous
569 Views, 4 Replies

Savecopyas or export dwg from iam or ipt

I wish to "Save Copy As" a whole network drive of Inventor assemblies/parts to autocad dwg files. (its for a customer database)

If i do this manual, there i can choose in the options version "AutoCAD 2004 dwg Files".

 

How to do this in the API?

 

I have seen the VBA sample code "Save as DWG Translator Sample"

Which shows how to SaveCopyAs with options and a config.ini, but this is written to export a 2D drawing.
I have not found any example how to do this with 3D data.

 

At one point in the sample code I read:

' Create a NameValueMap object

Dim oOptions As NameValueMap

Set oOptions = ThisApplication.TransientObjects.CreateNameValueMap

oOptions.Value("Export_Acad_IniFile") = strIniFile

 

How can you find the possible options in a namevaluemap that will allow me to choose the autocad version?

 

Thanks in advance,

 

Arnold

4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

I stumbled upon this thread after searching forum for hours:

http://forums.autodesk.com/t5/Inventor-Customization/using-the-API-to-savecopyas-solid-only/m-p/4380...

 

And the exported drawings are indeed saved in 2004. So my problem is solved.

 

What I still wonder...

 

oOptions.Value("DwgVersion") = 23

 

How can you find options.values?

I am using Visual Basic 2010

 

Message 3 of 5
Anonymous
in reply to: Anonymous

version can propably found somewhere in the help.

a few version types are listed in http://modthemachine.typepad.com/my_weblog/2011/05/saving-3d-dwg-using-the-dwg-translator.html

 

 

Message 4 of 5
Anonymous
in reply to: Anonymous

Thanks, I didn't knew about this article.

 

If anyone from Autodesk is reading this.

Perhaps this article should be added in programming help: Sample Programs: Translators: Export?

 

 

Message 5 of 5
timothy_berg
in reply to: Anonymous

How can this be done thru iLogic?

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

Post to forums  

Autodesk Design & Make Report