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 2 Current »

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 Windows: Compiling Samples or Linux: Compiling Samples )

  2. Make sure the result plugin is loaded (see Load modules/plugins (.tx) )

  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 Windows: Compiling Samples or Linux: Compiling Samples )

  2. Make sure the result plugin is loaded (see Load modules/plugins (.tx) )

  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

  • No labels