Message 1 of 4
DXF export - SaveCopyAs vs. WriteDataToFile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
There seems to be two methods to exporting DXFs.
oCompDef.DataIO.WriteDataToFile(sOut, sFileName)
and
DXFAddIn.SaveCopyAs(oDocument, oContext, oOptions, oDataMedium)
The first defines all settings in the script and the latter uses the .ini file. It seems the other exports (DWG, PDF, STEP...) dont have the "WriteDataToFile" method (or do they?). Are there any restrictions for either one? Is one more universal, or is one a legacy version to avoid? Is it easier to save congigurations with either?...
Anyways, I'm thinking about building an add-in for exporting various types and I want to know what would be the best approach in terms of Inventor API.
Thanks for you help!