/
Sample Jobs

Sample Jobs

The goal of these samples job is to execute your custom command as input into the script file.

Parse drawing content and create a summary

We provide a DrawingSummary sample with the SDK which implements a command that parses the content of a drawing and creates a summary of it.

To try it and run it from your script:

  1. Compile the sample (see https://graebert.atlassian.net/wiki/spaces/KUDOPARTNER/pages/1180434585 or https://graebert.atlassian.net/wiki/spaces/KUDOPARTNER/pages/1180434595 )

  2. Make sure the result plugin is loaded (see https://graebert.atlassian.net/wiki/spaces/KUDOPARTNER/pages/1834450981 )

  3. Run _DRAWINGSUMMARY command from your script with out any parameters

    _DRAWINGSUMMARY

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/drawingSummary.scr

Insert an image into a drawing

We provide a InsertImageCommand sample with the SDK which implements a command that inserts an image into a drawing.

To try it and run it from your script:

  1. Compile the sample (see https://graebert.atlassian.net/wiki/spaces/KUDOPARTNER/pages/1180434585 or https://graebert.atlassian.net/wiki/spaces/KUDOPARTNER/pages/1180434595 )

  2. Make sure the result plugin is loaded (see https://graebert.atlassian.net/wiki/spaces/KUDOPARTNER/pages/1834450981 )

  3. Run _INSERTIMAGE command from your script specifying image path (relative in provided resource bundle passed to resourceBundleURL), position, width and height

    _INSERTIMAGE "test.png" 10,10,0 600 400

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/&resourceBundleURL=https://docs.dev.graebert.com/kudo/samples/resourceBundle.zip&script=https://docs.dev.graebert.com/kudo/samples/insertImage.scr

Related content

ARES Kudo Script jobs
ARES Kudo Script jobs
More like this
Attach Image and Print PDF
Attach Image and Print PDF
More like this
Process to request token
Process to request token
Read with this
PDF / Image Creation
More like this
Job Samples
Job Samples
More like this