Hi all,
QCad has support for drawing lines, circles via command line like this :
but how can we draw line using one row, one step, using command like this --> line (10;10 , 20;20)
And how to catch command from command line in a script ?
I have some custom functions which I should call from command line with parameters in one row, is that possible. I am using QCad 3.19.1 version.
Thanks,
Dzenita
How to catch command from command line in a script
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: How to catch command from command line in a script
You might want to use the script shell for this:
View > Toolbars > Script Shell
See also:
https://www.qcad.org/doc/qcad/latest/de ... imple.html
View > Toolbars > Script Shell
Code: Select all
addLine(10,10, 20,20);
Code: Select all
for (i=0; i<10; i++) { addLine(10,i*10, 20,i*10); }
https://www.qcad.org/doc/qcad/latest/de ... imple.html
Re: How to catch command from command line in a script
Great, thanks a lot Andrew.
Best regards,
Dzenita
Best regards,
Dzenita