D2008
30th Jan 2008, 04:48 pm
Hi
I have a problem. I need to apply the following equations to a complete drawing in AutoCAD (2004):
X2 = a*X1*cos (b)+a*Y1*sin (b)+c
Y2 = -a*x1*sin (b)+a*Y1*cos (b)+d
where the variables are Variables:
a,b (rad), c and d
X1 and Y1 correspond to original coordinates of the plane and X2 and Y2 to the new coordinates of the plane.
It is possible to program these equations in Autolisp? :unsure:
Thanx
D2008
I have a problem. I need to apply the following equations to a complete drawing in AutoCAD (2004):
X2 = a*X1*cos (b)+a*Y1*sin (b)+c
Y2 = -a*x1*sin (b)+a*Y1*cos (b)+d
where the variables are Variables:
a,b (rad), c and d
X1 and Y1 correspond to original coordinates of the plane and X2 and Y2 to the new coordinates of the plane.
It is possible to program these equations in Autolisp? :unsure:
Thanx
D2008