@Anonymous wrote:
Lines would be horizontal or vertical. For exampe: I would like to select points for all vertcal lines that need to be offseted to the right and click on the right to specify direction of the offset.....
For a single Line, this does it [and the angle doesn't matter at all], in simplest terms:
(defun C:I5O3 (/ p1 p2 lin); = Inset line ends 5 units, Offset 3 units
(setq
p1 (getpoint "\nFirst-end reference point: ")
p2 (getpoint p1 "\nSecond-end reference point: ")
); setq
(command "_.line"
"_none" (polar p1 (angle p1 p2) 5)
"_none" (polar p2 (angle p2 p1) 5)
""
); command
(setq lin (entlast))
(command "_.offset" 3 "@" pause "")
(entdel lin)
(princ)
); defun
[That's a capital letter I and a capital letter O in the command name, not numbers 1 or 0.]
If your wording means that you want to pick a bunch of points first, and then have the Lines drawn and the Offsetting done on all of them at once, that could also be done, but it would be more complicated.
Kent Cooper, AIA