gigio_2020
Guest
Good morning to all,
I am preparing a lisp to draw the armor needles for a schooner in c.a. for zwcad or autocad.
in practice the user are asked two points and the lisp should return a pline (green in the file that attach) of the length equal to the difference of the x of the two points and placed in half or to (y1+y2)/2, with a quota that represents the extension and a writing that represents the brand of the bar. I have problems when I run the commands (pline etc.) starting from the coordinates extracted from the points. does not always place objects correctly and sometimes tilts the bar when it should always be horizontal. It is as if the definition of variables was wrong (as if reals were considered strings and vice versa).
I attach the dwg file and lisp. Can someone help me?
Thank you.
I am preparing a lisp to draw the armor needles for a schooner in c.a. for zwcad or autocad.
in practice the user are asked two points and the lisp should return a pline (green in the file that attach) of the length equal to the difference of the x of the two points and placed in half or to (y1+y2)/2, with a quota that represents the extension and a writing that represents the brand of the bar. I have problems when I run the commands (pline etc.) starting from the coordinates extracted from the points. does not always place objects correctly and sometimes tilts the bar when it should always be horizontal. It is as if the definition of variables was wrong (as if reals were considered strings and vice versa).
I attach the dwg file and lisp. Can someone help me?
Thank you.