需加载XLRX_API:
 - (defun c:tt ()
- (if (and
- (setq d (getdist "\n偏距:"))
- (setq ss (ssget '((0 . "*line,arc,ellipse,circle"))))
- )
- (if (setq ss (XLRX-Curve-GetOutPoly ss 0.001 nil))
- (progn
- (mapcar '(lambda (x)
- (mapcar '(lambda (y) (xlrx-set y "color" 1))
- (xlrx-curve-getoffsetcurves
- x
- (if (XLRX-ClockWiseP x)
- (- d)
- d
- )
- )
- )
- (xlrx-delete x)
- )
- (XLRX-PickSet->List ss)
- )
- )
- )
- )
- (princ)
- )
|