(defun C:TDo2 () (setvar "osmode" 512) (command "line" (getpoint "\n Pick Insertion Point") (setvar "osmode" 128)(princ) (getpoint "\n Pick Perp point") "") ) It creates the first line ok, but i want it to end there. i thought that the "" would terminate the line command. what am i doing wrong?
Title: Re: how to make my line command work as expected
Post by: ronjonp on March 07, 2017, 12:03:06 PM
Title: Re: how to make my line command work as expected
Post by: danmc on March 07, 2017, 01:05:20 PM
Thanks for the welcome!
Good to be back in the saddle after 25 years away from Autocad.
There is a lot of code in your example so maybe i did a cut and paste wrong or something but I am getting an error: "; error: syntax error".
Can you look at your code (i did the cut and paste a second time, no luck) and see if there is a syntax error?
just as a note, what I am trying to accomplish (the long goal) is to cut a section of a wall and create a simple door to place in the cut wall. i made a program like this back in the day but no longer have access to that code. so to help me re-learn autolisp i thought that i would do this project.