Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Greetings.
First of all, I want to thank everyone who contributes to this forum!
I am a beginner in the world of AutoLISP and I am stuck in a list routine.
A portion of a LISP that I am creating is not functioning as I intended.
I have isolated the problematic portion and would appreciate some assistance in fixing it.
The portion in question is as follows:
I am attempting to create a polyline with its endpoint at a distance of 80mm less than the distance between two specified points.
I understand that I may be overlooking something very basic, but as I mentioned, I am still in the process of learning.
Could someone kindly point out what might be wrong here?
(defun c:l1 ()
(setq p1 (getpoint "\nInsert first point...")
p2 (getpoint "\nInsert second point..."))
(setq dist1 (rtos (- (distance p1 p2) 80)))
(setq dist2 (strcat "@"dist1"<0"))
(command "_pline" p1 dist2 "")
(princ)
)
Thank you for your help!
Solved! Go to Solution.