...
Code Block |
---|
{ "Inputs": { "inputfileformat": "dwg", "script": { "scriptpath": "Script/LispCLIrectangle.scr", "scriptformat": "scr", "scriptvariables": [{ "name": "OutputFilePath", "value": "output/MyFile.dwg" }, { "name": "MYPOINT", "value": "0,0.10" }] }, "templates": { "drawingtemplate": "templates/drawingtemplates/standardiso_mm.dwt", "drawingtemplateformat": "dwt" }, "plugin": { "pluginfile": "LISPLOAD/Lisp/CLIRectangle.lsp", "pluginformat": "lsp", "pluginfolder": "CLIPlugin", } }, "Outputs": { "outputfileformat": "dwg", "outputfilename": "output/MyFile.dwg" } } |
The configuration file maps the file locations and variables to be used on the Script.
The file is divide in Inputs and Outputs sections. this is the way the variables are organized. And it contains default parameters, but also variable could be created.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
Inputs
Default parameters:
Code Block |
---|
"scriptpath": "Script/LispCLIrectangle.scr", "scriptformat": "scr", |
Custom variable
Code Block |
---|
...
{ |
...
|
...
"name": " |
...
MYPOINT", |
...
|
...
" |
...
value": " |
...
Code Block |
---|
"plugin": {
"pluginfile": "LISPLOAD/Lisp/CLIRectangle.lsp",
"pluginformat": "lsp",
"pluginfolder": "CLIPlugin",
} |
...
0,0.10"
} |
Outputs
On output session the output files are declared so the server can locate it and place on the download link in the Job result page.
Default parameters:
Code Block |
---|
"outputfileformat": "dwg", "outputfilename": "MyFile.dwg" |
Resources:
Environment:
View file | ||
---|---|---|
|
Configuration file:
View file | ||
---|---|---|
|