Custom scripts not working on QCAD pro 3.32.2.0 on Windows 11 pro
Posted: Tue May 13, 2025 10:15 am
I am writing to report an issue I have encountered while attempting to run custom ECMAScript scripts in QCAD Professional on Windows 11 Pro.
Despite following the recommended practices for organizing and loading scripts, I have experienced inconsistent behavior — including cases where QCAD fails to start entirely after placing tool-style scripts in the expected scripts/ directory structure.
Issue Description
When I include a custom tool script (e.g., CreatePointsAtEqualIntervals.js) along with an Init.js initializer file, QCAD crashes silently on startup (i.e., it does not open, and no error dialog appears).
If I rename or remove the Init.js file, QCAD starts normally again.
I’ve verified that the scripts are syntactically valid and follow the documentation’s recommendations regarding RGuiAction registration and use of basePath.
Environment
QCAD Version: 3.32.2.0
OS: Windows 11 Pro (64-bit)
User Account Control (UAC): Enabled
Script Location: C:/Program Files/QCAD/scripts/MyTools/CreatePointsAtEqualIntervals/
Possible Issues
Script engine may not report or log errors properly during startup.
File path referencing in include(...) seems to fail when using nested script folders.
QCAD does not fail gracefully when an invalid or misreferenced Init.js file is present.
Request
Could you please advise if there are any known issues with script execution on Windows 11 Pro?
Is there a proper way to validate tool scripts before startup or to force QCAD to log script loading errors?
Would you consider improving error reporting for Init.js-related issues during startup?
I appreciate your support and the powerful scripting engine QCAD provides — it is a crucial part of our tool development workflow for generating CAD elements used in custom metal fabrication.
Please let me know if you need any of my script files or error logs for further investigation.
Despite following the recommended practices for organizing and loading scripts, I have experienced inconsistent behavior — including cases where QCAD fails to start entirely after placing tool-style scripts in the expected scripts/ directory structure.

When I include a custom tool script (e.g., CreatePointsAtEqualIntervals.js) along with an Init.js initializer file, QCAD crashes silently on startup (i.e., it does not open, and no error dialog appears).
If I rename or remove the Init.js file, QCAD starts normally again.
I’ve verified that the scripts are syntactically valid and follow the documentation’s recommendations regarding RGuiAction registration and use of basePath.

QCAD Version: 3.32.2.0
OS: Windows 11 Pro (64-bit)
User Account Control (UAC): Enabled
Script Location: C:/Program Files/QCAD/scripts/MyTools/CreatePointsAtEqualIntervals/

Script engine may not report or log errors properly during startup.
File path referencing in include(...) seems to fail when using nested script folders.
QCAD does not fail gracefully when an invalid or misreferenced Init.js file is present.

Could you please advise if there are any known issues with script execution on Windows 11 Pro?
Is there a proper way to validate tool scripts before startup or to force QCAD to log script loading errors?
Would you consider improving error reporting for Init.js-related issues during startup?
I appreciate your support and the powerful scripting engine QCAD provides — it is a crucial part of our tool development workflow for generating CAD elements used in custom metal fabrication.
Please let me know if you need any of my script files or error logs for further investigation.