Тема: как правильно загрузить лисп файлы?
есть вот такой файл,(C:LW_ARC)
*****************************************************************************************
|;
(vl-load-com)
(or doc (setq doc (vla-get-ActiveDocument (vlax-get-acad-object))))
(if (and (setq lw (entsel "\n Select segment in a polyline. "))
(= (cdr (assoc 0 (entget (car lw)))) "LWPOLYLINE")
) ;_ and
(progn
(setq i (fix (vlax-curve-getParamAtPoint
(car lw)
(vlax-curve-getClosestPointTo (car lw) (cadr lw))
) ;_ vlax-curve-getParamAtPoint
) ;_ fix
p1 (vlax-curve-getPointAtParam (car lw) i)
p3 (vlax-curve-getPointAtParam (car lw) (1+ i))
lw (vlax-ename->vla-object (car lw))
) ;_ setq
(princ "\n Set visually curvature of a segment. ")
(vla-StartUndoMark doc)
(while (and (setq p2 (grread 5)) (= (car p2) 5))
(vla-SetBulge
lw
i
((lambda (a) (/ (sin a) (cos a)))
(/ (- (angle (cadr p2) p3) (angle p1 (cadr p2))) 2.)
)
) ;_ vla-SetBulge
) ;_ while
(vla-EndUndoMark doc)
) ;_ progn
(princ "\n It is select nothing or object not a polyline. ")
) ;_ if
) ;_ defun