- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hai all,
how do i getpoint on another end of a line after scale that line for my next or new reference point?
my goal is to set second reference point on my lisp.
here i simplified my code on that part for testing:
(defun c:test (/)
(setq P0 (getpoint "\nSelect Point: "))
(setq SF (getdist "\nInsert Size: "))
(setq SET1 (ssadd)) ; first selection set
(command "_line" '(0.0 0.0) '(0.99 0.0) "") ; the last line in the set -> suppose i will need to set the new getpoint right?
(ssadd (entlast) SET1)
(command "_move" SET1 "" '(0 0) P0)
(command "_scale" SET1"" p0 sf)
(command "_group" "c" "*" "" SET1 "")
(command "_rotate" SET1 "" p0 pause)
(initget "Y N _Yes No")
(setq option (getkword "\nDo you want to continue Draw Spline? (Yes/No): "))
(if (= option "Yes")
(progn
(setq SET2 (ssadd)) ; second selection set
(command "_spline" ) ; draw spline -> suppose here to change
(while (> (getvar 'cmdactive) 0)
(command pause)
)
(command "_change" "_l" "" "_p" "_lt" "CENTER" "_c" 8 "")
(ssadd (entlast) SET2)
(c:lisp2) ; i call in another lisp
)
(princ)
)
This existing code that i already simplified, i want to apply my new getpoint when it start draw the spline.
meaning first point of spline is set on new getpoint, and user will input others point to continue.
-> (command "_line" '(0.0 0.0) '(0.99 0.0) "")
0.99 0.0 is the point before it scale up and rotate.
i dont know if you can understand what am i explaining..
thank you in advance..
Solved! Go to Solution.