we have a plugin that we run in command line mode
Code: Select all
qcad.exe" -no-gui -allow-multiple-instances -autostart "C:\Program Files\QCAD\/scripts/Tools/VisionOnly.js"
Code: Select all
int = function main() {
if (testArgument(args, "-h", "-help")) {
printHelp();
return 0;
}
if (args.length < 3) {
print("No input file given. Try -h for help.");
return 595;
}
var cadFileName = args[args.length - 1];
if (isNull(cadFileName) || cadFileName.indexOf("-") === 0) {
print("No input file. Try -h for help.");
return 2;
}
return main();
Thanks