Angelo2449
Guest
Hello everyone,
I'm trying to write a program that runs the double offset of a line, I fucked a little but the result doesn't work.
Does anyone help me?
Grazieeeeeeeee!
I'm trying to write a program that runs the double offset of a line, I fucked a little but the result doesn't work.
Does anyone help me?
Code:
(defun c:wpoint (/ os pt1 pt pttxy ptv ptv ptvett ptd ptdir distance)
(setvar "blipmode" 1)
(setq os (getvar "osmode")
(setvar "osmode" 8)
(setq pt1 (getpoint "\nselect the wpoint: ")
(Sectq pt (car pt1))
(setq ptt)
(setq ptxy (strcat (rtos pt 2 4) "," (rtos ptt 2 4))
(command "_circle" pt1 1.00 ")
(princ)
(princ ptvett)
(princ)
(setq ptv (getpoint))
(if ptvett (setq point ptv))
(command "_line" pt1 ptv ")
(setq line1 (entlast)
(princ)
(princ ptdir)
(princ)
(setq ptd (getpoint))
(if ptdir (setq point ptd)
(setq distance 30.00)
(vla-offset line1 distance)
(vla-offset line1 (- distance)
);