Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
{
  "Inputs": {
    "inputfileformat": "dwg",
      "script": {
        "scriptpath": "Script/CLIrectangle.scr",
        "scriptformat": "scr",
        "scriptvariables": [{
            "name": "OutputFilePath",
            "value": "output/MyFile.dwg"
        }, {
            "name": "MYPOINT",
            "value": "0,0.10"
        }]
    }
  },
  "Outputs": {
    "outputfileformat": "dwg",
    "outputfilename": "output/MyFile.dwg"
  }
}

The configuration file maps the file locations and variables to be used on the Script.
For this sample we are providing the output file path, location where the file will be saved, and the value for one of the point for the rectangle creation

...

Code Block
"outputfileformat": "dwg",
"outputfilename": "MyFile.dwg"

Resources:
Environment:

View file
nameRectangle.zip

Configuration file:
View file
nameRectangle Config.txt