Simple task, I thought. A script that draws a spiral with some individual parameters (as an exercise).
What would the nomenclature be like, how do I combine the for loop and the resulting single points with the other parameters (start, closed etc.)?
The for.. - loop within the polyline parameter set, or how?
I tried to find out something from the inherent spiral script, but did not find any example source for it, nor for any other usable script (except draw 0,0,100,100)- How should I proceed?
A practical example would probably help not only me.
Thanks, cheers,
Chattermark aka Ulli
... use polyline in a for... loop in a script?
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
-
- Junior Member
- Posts: 24
- Joined: Sun Oct 12, 2014 8:30 am
... use polyline in a for... loop in a script?
Don't try to fix it if it ain't broken.
Re: ... use polyline in a for... loop in a script?
First, please refer to our scripting tutorials (with examples):
https://qcad.org/en/tutorial-script-programming
If this does not answer your question, there are plenty more examples at:
https://github.com/qcad/qcad/tree/master/scripts
Start with those in https://github.com/qcad/qcad/tree/maste ... c/Examples.
For example the spiral example script at:
https://github.com/qcad/qcad/tree/maste ... MathSpiral
https://qcad.org/en/tutorial-script-programming
If this does not answer your question, there are plenty more examples at:
https://github.com/qcad/qcad/tree/master/scripts
Start with those in https://github.com/qcad/qcad/tree/maste ... c/Examples.
For example the spiral example script at:
https://github.com/qcad/qcad/tree/maste ... MathSpiral
-
- Junior Member
- Posts: 24
- Joined: Sun Oct 12, 2014 8:30 am
Re: ... use polyline in a for... loop in a script?
Thanks. Exactly the pointers to what I needed. Something for the FAQ?
Cheers,
U.
Cheers,
U.
Don't try to fix it if it ain't broken.