- (defun c:lin (/ ms ang pt0 pt1)
- (vl-load-com)
- (setq ms (vla-get-modelspace (vla-get-activedocument (vlax-get-acad-object)))
- pt0 (getpoint "\n起点:"))
- (while (setq ang (getangle pt0 "\n下一点:"))
- (setq pt1 (polar pt0 ang 1000))
- (vla-addline ms (vlax-3d-point pt0)(vlax-3d-point pt1))
- (setq pt0 pt1)
- )
- )
|