I'm developing a plugin for QCADs and I've found the javascript language to be very handy and has greatly improved my efficiency.
However, I'm having a bit of trouble figuring out how to bring in an external open source JS library file.
The 'import' and 'request' keywords don't seem to work!
js plugin
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Re: js plugin
Code: Select all
include("path/to/file.js");
https://github.com/qcad/qcad/tree/maste ... c/Examples
And script tutorials at:
https://www.qcad.org/en/tutorial-script-programming