炸开法
- (defun c:tt (/ obj)
- (setq obj (vlax-ename->vla-object (car (entsel))))
- (foreach obj (vlax-safearray->list
- (vlax-variant-value (vla-explode obj)))
- (if (= "AcDbArc" (vla-get-ObjectName obj))
- (entmake
- (list
- '(0 . "point")
- (cons 10
- (vlax-curve-getpointatparam
- obj
- (* 0.5
- (+ (vlax-curve-getstartparam
- obj)
- (vlax-curve-getendparam
- obj))))))))
- (vla-delete obj)))
|