Job is an automated task ran out of a command line script. The script is loaded to a session of ARES Commander providing command lines to be executed.
What can be done by the script on ARES CLI?
Run directly simple (Direct Input Commands) command lines:
RECTANGLE 3C 0,0 0,10 10,10
Run Scripted Commands:
(setq OUTPUTDWG "FileName.dwg") (command "RECTANGLE" "3C" "0,0" "0,10" "10,10") (command "SAVEAS" "R32" OUTPUTDWG "Y")
Load and execute LISP commands and Plugins
CLIRectangle.lsp
(defun c:CLIsamplerectangle () (command "RECTANGLE" "3C" "0,0" "0,10" "10,10") )
Script
(setq OUTPUTDWG "FileName.dwg") (load (findfile "CLIRectangle.lsp")) CLIsamplerectangle (command "SAVEAS" "R32" "OUTPUTLISP" "Y") (command "EXIT" "YES")
Pass parameters to the script via Configuration file (JSON)
Configuration File
{ "Inputs": { "inputfileformat": "dwg", "script": { "scriptpath": "LISPLOAD/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" } }
Script
(setq OUTPUTDWG "OutputFilePath") (command "RECTANGLE" "3C" "0,0" "MYPOINT" "10,10") (command "SAVEAS" "R32" OUTPUTDWG "Y")
Parameters mapped on Configuration File
OutputFilePath
MYPOINT