Message 1 of 21
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Im trying to create a lisp that creates a line right angle polyline that is pretty much and 1/16 offset of a corner. The line needs to be 1/2 inch, turn 90 degrees, then another 1/2 inch. I then tried to insert a rotate command so i can orientate the right angle to match the original corner. I will insert my code and a picture example. The red line is what im trying to draw via lisp. Its a very simple line and i usually copy it and then rotate it the way i need, i thought a lisp might be quicker though. Thank you everyone
(defun c:sqout (/ startpoint)
(setq startpoint (getpoint "Select Corner"))
(command "._line" startpoint (1/2,0,0))
(command "._line" startpoint (0,1/2,0))
(command "._rotate" startpoint)
)
Solved! Go to Solution.