Old School Command Scripting
Posted: Thu Nov 06, 2025 1:56 pm
The Command line entry is always handy for a draftsman.
QCAD/CAM 3.32.4 / Qt 5.14.2 / Linux x86_64
Command: new
Command: line
Coordinate: 0,0
Coordinate: 0,210
Coordinate: 210,297
Coordinate: 0,297
Fidling around I tried the old school Command scripting.
Example; a file A4.scr contains the text: line 0,0 210,0 210,297 c
where every space is an [Enter].
This has always worked fine (and still does in AutoCad).
Executing the script I use; Command: runscript A4 [Enter]
result; QCAD/CAM 3.32.4 / Qt 5.14.2 / Linux x86_64
Command: new
Unknown command or invalid coordinate or value: "runscript a4.scr"
Numbers may be entered as: "3.142"
Coordinates may be entered as: "1.234,1.234" (absolute) or "@1.234,1.234" (relative) or "10<278.873" (polar)
or "@10<278.873" (relative polar)
You may change the number / coordinate format in the application preferences.
Unknown command or invalid coordinate or value: "run script a4"
Unknown command or invalid coordinate or value: "rscript a4"
Unknown command or invalid coordinate or value: "script a4"
Unknown command or invalid coordinate or value: "runscript a4"
Command: runscript
Script exception in script '/home/all/QCAD/Scripts/A4.scr': SyntaxError: Parse error
Renamed the script as A4.js.
Result;QCAD/CAM 3.32.4 / Qt 5.14.2 / Linux x86_64
Command: new
Unknown command or invalid coordinate or value: "runscript a4"
Unknown command or invalid coordinate or value: "run script a4"
Unknown command or invalid coordinate or value: "rscript a4"
Command: runscript
Script exception in script '/home/all/QCAD/Scripts/A4.js': SyntaxError: Parse error
Where is what going wrong?
QCAD/CAM 3.32.4 / Qt 5.14.2 / Linux x86_64
Command: new
Command: line
Coordinate: 0,0
Coordinate: 0,210
Coordinate: 210,297
Coordinate: 0,297
Fidling around I tried the old school Command scripting.
Example; a file A4.scr contains the text: line 0,0 210,0 210,297 c
where every space is an [Enter].
This has always worked fine (and still does in AutoCad).
Executing the script I use; Command: runscript A4 [Enter]
result; QCAD/CAM 3.32.4 / Qt 5.14.2 / Linux x86_64
Command: new
Unknown command or invalid coordinate or value: "runscript a4.scr"
Numbers may be entered as: "3.142"
Coordinates may be entered as: "1.234,1.234" (absolute) or "@1.234,1.234" (relative) or "10<278.873" (polar)
or "@10<278.873" (relative polar)
You may change the number / coordinate format in the application preferences.
Unknown command or invalid coordinate or value: "run script a4"
Unknown command or invalid coordinate or value: "rscript a4"
Unknown command or invalid coordinate or value: "script a4"
Unknown command or invalid coordinate or value: "runscript a4"
Command: runscript
Script exception in script '/home/all/QCAD/Scripts/A4.scr': SyntaxError: Parse error
Renamed the script as A4.js.
Result;QCAD/CAM 3.32.4 / Qt 5.14.2 / Linux x86_64
Command: new
Unknown command or invalid coordinate or value: "runscript a4"
Unknown command or invalid coordinate or value: "run script a4"
Unknown command or invalid coordinate or value: "rscript a4"
Command: runscript
Script exception in script '/home/all/QCAD/Scripts/A4.js': SyntaxError: Parse error
Where is what going wrong?