马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×

- (defun SptoPl (e / sp ep spam epam pts)
- (setq sp (vlax-curve-getstartpoint e)
- ep (vlax-curve-getendpoint e)
- spam (vlax-curve-getstartparam e)
- epam (vlax-curve-getendparam e)
- )
- (while (< spam epam)
- (setq p (vlax-curve-getpointatparam e spam))
- (setq pts (cons p pts))
- (setq spam (+ spam 10))
- )
- (if (not (equal (car pts) ep 0.000001))
- (setq pts (append (list ep) pts))
- )
- (entmake
- (append
- (list '(0 . "LWPOLYLINE")
- '(100 . "AcDbEntity")
- '(100 . "AcDbPolyline")
- (cons 90 (length pts))
- )
- (mapcar '(lambda (x) (list 10 (car x) (cadr x)))
- pts
- )
- )
- )
- )
- (defun Eltopl (e / sp ep spam epam pts)
- (setq sp (vlax-curve-getstartpoint e)
- ep (vlax-curve-getendpoint e)
- spam (vlax-curve-getstartparam e)
- epam (vlax-curve-getendparam e)
- )
- (while (< spam epam)
- (setq p (vlax-curve-getpointatparam e spam))
- (setq pts (cons p pts))
- (setq spam (+ spam (/ pi 180)))
- )
- (if (not (equal (car pts) ep 0.000001))
- (setq pts (append (list ep) pts))
- )
- (entmake
- (append
- (list '(0 . "LWPOLYLINE")
- '(100 . "AcDbEntity")
- '(100 . "AcDbPolyline")
- (cons 90 (length pts))
- )
- (mapcar '(lambda (x) (list 10 (car x) (cadr x)))
- pts
- )
- )
- )
- )
|