- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi @CCarreiras. In these two lines of code, there is only path and file extension being specified, but no main file name.
SavePath=ThisDoc.WorkspacePath()&"\Z_CUT\"
oDataMedium.FileName = SavePath &".dxf"
I assume that is on purpose, but I believe the underscore is simply added automatically by the TranslatorAddIn's source code, behind the scenes. I am not sure if there is a way to avoid that. It seems like there are a couple process folks have used as a workaround though. One process was to rename the resulting files after the SaveAs process is complete (not that desirable, but not too complicated to write the code for). It seems like the other process was to use a temporary drawing file, and copy each sheet to the other drawing (as its only sheet), then export that temporary drawing each time. But I can't remember if that eliminated the _SheetName part being added, or if that was just used to get separate PDF's of each sheet. I never used that second process for exporting DXF's though, so I may be remembering wrong. It seems to me like if you manually export a single sheet drawing to a DXF, it will not add the _SheetName portion to the file name, so maybe that automation process will also work.
Wesley Crihfield
(Not an Autodesk Employee)