By running script
You can run _DOSAVEAS command from a script to convert your drawing passing parameters as followed:
_DOSAVEAS "test.dxf" _F DXF 2013 "" 0
Command parameters:
File name that needs to be in ““ as it could contain spaces
_F or _Format keyword to specify format parameters
Format: DXF or DWG
Version: 2018 or R32, 2013 or R27, 2010 or R24, 2007 or R21, 2004 or R18, 2000 or R15
Folder id passed to file upload if next option is true
Upload option:
1: the result will be uploaded to API backend (POST /files is done, see API Documentation )
0: the result is uploaded to output bucket (SaaS version) or written to a dedicated script output folder (on-premise version)
A sample script file can be found here.
Sample call to run it locally with on-premise version:
To run on https://app.kudo.graebert.com/ you need to specify “file” correctly and add proper “auth” parameter or wrap the parameters in an api token using your app key.
By fileType parameter (On-premise only)
Optionally you can convert your drawing easily via a headless script job in the on-premise version by just passing appropriate fileType and dwgVersion query parameter to the endpoint.
Supported file types are: DWG and DXF.
Supported versions are: 2018 or R32, 2013 or R27, 2010 or R24, 2007 or R21, 2004 or R18, 2000 or R15
Sample call that uses our sample backend API server and creates a DXF of version 2013 from the drawing in c://tmp/ :