Page 1 of 1

How to I specify functions and constants in Qcad?

Posted: Wed Nov 14, 2007 11:45 am
by Phil Smith
Hi:

I'm a newbie... please have forbearance!

I want to draw a line between 2 points.... however, the coordinates of each point are complicated functions. For example, I have a line that is described the equation

y = a + bx

where

b = ( 26.75 - 12 + 0.75 * sqrt(2) ) / ( 12 - 0.75 * sqrt(2) -26.75 )

and

a = 26.75 - ( ( 12 - 0.75 * sqrt(2) ) / b ).

Then, I want to draw a line between 2 points called [x1,y1] and [x2,y2] where

[x1,y2] = [ 0 , 26.5 ], and

[x2,y2] = [ (26.5-a)/b , 26.5 ].

How do I do this easily in Qcad?

Thank you!
Phil Smith
Duluth, GA

Re: How to I specify functions and constants in Qcad?

Posted: Wed Nov 14, 2007 1:26 pm
by michael
Note: QCad Professional have a nice built in scripting language, sure you can program such functions there.

Take a look here how it works:

http://www.ribbonsoft.com/rsforum/viewtopic.php?t=238


More on scripting:
http://www.ribbonsoft.com/qcad_doc.html

But note: QCad is not Matlab!
:roll: