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
How to I specify functions and constants in Qcad?
Moderator: andrew
-
- Newbie Member
- Posts: 3
- Joined: Sun Oct 28, 2007 2:10 pm
- Location: Duluth, GA
How to I specify functions and constants in Qcad?
Phil Smith
Duluth, GA
Duluth, GA
Re: How to I specify functions and constants in Qcad?
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!
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!