Message 1 of 48
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
For example, User picks 2 Points, we have 2 options to connect the 2 points with the orthogonal root.
lisp is here;
(defun c:1 ( / Z1 z2 z5 z6 z3 z4)
(if (and (setq Z1 (getpoint "\n Top of L shape : "))
(setq z2 (getpoint Z1 "\n Bot of L shape : "))
(setq z3 (list (car Z1) (cadr z2) 0.))
(setq z6 (list (car z2) (cadr Z1) 0.))
(setq z4 (inters Z1 (polar Z1 (* 1.75 pi) 1.)
z3 z2 nil))
(setq z5 (inters z2 (polar z2 (* 1.75 pi) 1.)
Z1 z6 nil))
)
(command "_.line" "_non" Z1 "_non" z3 "_non" z2 ""))
(princ)
)
(defun c:2 ( / Z1 z2 z5 z6 z3 z4)
(if (and (setq Z1 (getpoint "\nTop of 7 shape: "))
(setq z2 (getpoint Z1 "\n Bot of 7 shape: "))
(setq z3 (list (car Z1) (cadr z2) 0.))
(setq z6 (list (car z2) (cadr Z1) 0.))
(setq z4 (inters Z1 (polar Z1 (* 1.75 pi) 1.)
z3 z2 nil))
(setq z5 (inters z2 (polar z2 (* 1.75 pi) 1.)
Z1 z6 nil))
)
(command "_.line" "_non" Z1 "_non" z6 "_non" z2 ""))
(princ)
)
Any chance to preview option 1 and option 2 Before making the polyline ?
Solved! Go to Solution.