Page 1 of 1

Executing several commands

Posted: Mon Jul 07, 2014 9:48 pm
by spoutnig
Hi,

I am new to QCAD (and CAD in general) ... sorry in advance for the noob question.
I like drawing using commands and I was wondering if it was possible to copy several commands from a text file and have them executed in a row.

Ex:

Let's say I have the following text file containing the 3 lines below :

Code: Select all

rectangle
0,0
15,10
When I paste the 3 line (selected and copied in a single block) I get a syntax error from the command execution QCAD window.

Is it possible to do what I try to achieve ... or something close ?

Thanks in advance

Nic

Re: Executing several commands

Posted: Tue Jul 08, 2014 11:02 am
by andrew
No, that's not possible. Please note that there are very few commands that can be competed only with command line input. Many tools require you to choose an existing entity (e.g. parallel line, circle for tangent, etc). Entities cannot be specified through the command line.

What you can do instead is to create script using the very powerful and complete QCAD scripting interface. Have a look at the example scripts provided in scripts/Misc/Examples to get a general idea of how scripts work.

Re: Executing several commands

Posted: Wed Jul 09, 2014 8:28 pm
by spoutnig
That makes sense to me ... I'll then have a look at the scripting examples. Any tutorial to pinpoint ?

Nico