- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I have this program which does a scale function by picking two reference points in the object being scaled, then you pick a new reference point and it scales the object to that. I would like to modify this so that after you pick the two reference points, you then enter a new value instead of a new reference point. I figure this involves changing the (setq Pt4 (getpoint Pt2 "\n Select new reference point: ")) line but Im not sure how. Any help is appreciated.
(defun c:ScaleRef (/ ss Pt1 Pt2 Pt3 Pt4)
(if
(and
(setq ss (ssget))
(setq Pt1 (getpoint "\n Select base point: "))
(setq Pt2 (getpoint "\n Select first reference point: "))
(setq Pt3 (getpoint Pt2 "\n Select second reference point: "))
(setq Pt4 (getpoint Pt2 "\n Select new reference point: "))
)
(command "_.scale" ss "" Pt1 "_reference" Pt2 Pt3 Pt4)
)
(princ)
)
Solved! Go to Solution.