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
Solved! Go to Solution.
I stumbled upon this thread after searching forum for hours:
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
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
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?