Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 4 Next »

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 in ““ as it could contain spaces

  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

  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 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/ :

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

  • No labels