i want to automaticly export my files in mutiple formats (dwg/dxf/pdf/jpg)
For that i use the following code of the API-help-file.
Code: Select all
IDocument.Export(Path, InterfaceProvider, Ask)
Code: Select all
IDocument.SaveAs(Name, Ask)
Code: Select all
...
IDocument.SaveAs("C:\test.dwg", True)
IDocument.SaveAs("C:\test.dxf", True)
IDocument.SaveAs("C:\test.jpg", True)
Code: Select all
...
IDocument.Export("C:\test.dwg", "dwg", True)
IDocument.Export("C:\test.dxf", "dxf", True)
IDocument.Export("C:\test.jpg", "jpg", True)
Code: Select all
...
IDocument.Export("C:\test.pdf", "pdf", True)
IDocument.Export(Path, InterfaceProvider, Ask)
The API-help-file says:
When i use True or False it doesn't matter.Ask user for confirmation before saving modified referenced files (optional, default = False).
Where can i change the options of dwg?
The API-help-file says:
Example i used before Export-function:IApplication.SetExportOption(Extension, Name, Value)
AutoCAD (dxf, dwg) :
format : "dxf", "dwg", "binary dxf".
unit : "mm", "cm", "m", "km", "µm", "ft", "in", "mil", "mile", "µin".
version : "2.5", "2.6", "9", "10", "11", "12", "13", "14", "2000".
Code: Select all
App.SetExportOption("dxf", "unit", "mm")
App.SetExportOption("dxf", "format", "dwg")
App.SetExportOption("dxf", "version", "2000")
Any experience about that?