/
Format Conversion

Format Conversion

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:

  1. File name that needs to be on a separate line as it could contain spaces (so we can parse it properly)

  2. _F or _Format keyword to specify format parameters

  3. Format: DXF or DWG

  4. Version: 2018 or R32, 2013 or R27, 2010 or R24, 2007 or R21, 2004 or R18, 2000 or R15

  5. Folder id passed to file upload if next option is true - needs to be on a separate line as well as spaces are allowed

  6. Upload option:

    1. 1: the result will be uploaded to API backend (POST /files is done, see API Documentation )

    2. 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:

GET http://localhost:8081/startScriptJob?server=http://localhost:3000&file=Construction.dwg&outputPath=c://tmp/&script=https://docs.dev.graebert.com/kudo/samples/fileconversion.scr

To run on https://app.kudo.graebert.com/ you need to specify “file” correctly (do not forget to 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/ :

GET http://localhost:8081/startScriptJob?server=http://localhost:3000&file=Construction.dwg&outputPath=c://tmp/&fileType=DXF&dwgVersion=2013

 

Related content

PDF / Image Creation
More like this
ARES Kudo Script jobs
ARES Kudo Script jobs
More like this
API Server: Connecting ARES Kudo to a data backend
API Server: Connecting ARES Kudo to a data backend
More like this
Process to request token
Process to request token
Read with this