qcad-3.28.2-pro-linux-x86_64.tar.gz missing script source code

qcad-3.28.1-pro-linux-x86_64.tar.gz apparently came with all the script source code as I do not recall downloading them separately.

I just decompressed qcad-3.28.2-pro-linux-x86_64.tar.gz and found only the scripts/Misc/Examples folders. If I need to download the scripts sources separately, where do I download them from?

There’s no need to download anything else. The package contains everything to run the QCAD Professional full version.


Please refer also to the file

~/opt/qcad-3.28.2-pro-linux-x86_64/scripts/readme.txt:

This folder contains some example scripts of QCAD.

QCAD contains hundreds of more scripts than those in this folder. However,
those are distributed as compiled plugins for faster installation and loading.
If you prefer to have all available scripts as individual files in this folder,
you can download them as part of the source code distribution (see QCAD.org
download page). Simply copy the contents of the ‘scripts’ folder into this folder.

Scripts available in this folder always take priority over scripts in plugins.
You can update a script by keeping its file in this directory (or in the
appropriate sub directory). It’s usually not necessary to delete the ‘qcadscripts’
plugin after installing the script file sources.

Thank you. I did see the readme in the scripts folder for both the version installed with the installer and the files extracted from the qcad-3.28.2-pro-linux-x86_64.tar.gz file which I took to be the source code archive. On closer inspection, this archive is not the source code. I did find the scripts in the community source code archive at the bottom of the downloads page.

Since I was only interested in the scripts I did not pay close enough attention to what else was in the tar.gz.

I am now seeking the source code for a professional plugin script that does not seem to be in the qcad-3.28.2.0.zip file.

Specifically, I am looking for Draw->Polyline->Polyline from Segments | OG.
I have a need to run the script non-interactively and would rather not recreate it on my own.

All resources are present in an installation package, most only in compiled form.
Proprietary code of QCAD pro is only present in compiled form.
These are not/not well documented, may change over time, may be replaced or even removed without notice.

You might find some details here:

No, probably not, do not expect this to be simple.
The question remains if that suits your needs, Polyline from Segments (OG) requires interaction to indicate segments.
But for example it includes resources to merge indicated segments as good as it gets, approximating things, chopping up, …
Another option is Polyline from Selection (OC) … See: PolylineFromSelection and getAffectedObjects

With some luck you might find other topics with usage or details scattered around on the forum.

I’ll repeat Andrew’s note:
Please keep in mind that PolylineFromSelection is not part of the public API but part of the proprietary API of QCAD Professional.
Feel free to call this from your script, but keep in mind that this API might change in a future version.

Regards,
CVH

Thank you. It was not clear to me that the additional scripts available in the pro version were being maintained as proprietary. I was developing that suspicion due to my inability in finding uncompiled scripts. So it looks like I will need to roll my own algorithm. Fortunately, the requirements of the input documents are relatively well defined so I won’t need to solve for the entire universe of variations. That does not mean the effort won’t be pretty daunting. It seems to require a fair amount of bookkeeping. Fortunately, QCAD provides a rich set of methods for querying and manipulating shapes.