The configuration file maps the file locations and variables to be used on the Script. The file defines the location of the start up script, sets the Environment parameters and the location of the resulting files. The configuration 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.
Code Block |
---|
{
"Inputs": {
"inputfileformat": "dwg",
"script": {
"scriptpath": "Script/Lisp.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": "MyFile.dwg"
}
} |
...
Inputs
Default parameters:
...
Code Block |
---|
"plugin": {
"pluginfile": "LISPLOAD/Lisp/CLIRectangle.lsp",
"pluginformat": "lsp",
"pluginfolder": "CLIPlugin",
}, |
For multiple input files, you need to map the target where each file will be used:
Use
"target": "D"
for a file to open on application startup.Use
"target": "script"
for a file to load at runtime via a script that specifies the file path.
Code Block |
---|
"files":[
{"file":"${INPUT_FILE[0]}","target":"D"},
{"file":"${INPUT_FILE[1]}","target":"script"}
], |
Outputs
Default parameters:
...