 - (defun c:tt ()
- (vl-load-com)
- (setq doc (vla-get-activedocument (vlax-get-acad-object)))
- (setq mds (vla-get-modelspace doc))
- (setq pt1 (vlax-3d-point '(0 0 0)))
- (setq pt2 (vlax-3d-point '(10 10 0)))
- (setq l1 (vla-addline mds pt1 pt2))
- (vla-offset l1 20)
- (setq s1 (entlast))
- (setq p1 (vlax-curve-getStartPoint s1)
- p2 (vlax-curve-getEndPoint s1)
- )
- (princ)
- )
|