本帖最后由 Free-Lancer 于 2014-10-12 09:44 编辑
 - (defun c:tt (/ e)
- (fy:begin)
- (if (and (progn
- (princ "\n选择源Line...")
- (setq e (ssget "_+.:E:S" '((0 . "line"))))
- )
- (progn
- (princ "\n选择匹配目标....")
- (ssget '((0 . "line")))
- )
- )
- (fy:mat (e2o (ssname e 0)) (fy:cset->objs) 'startpoint)
- )
- (princ)
- )
 - (defun c:tt (/ e)
- (fy:begin)
- (if (and (progn
- (princ "\n选择源Circle...")
- (setq e (ssget ":S" '((0 . "Circle"))))
- )
- (progn
- (princ "\n选择匹配目标....")
- (ssget '((0 . "circle")))
- )
- )
- (fy:mat (e2o (ssname e 0)) (fy:cset->objs) 'radius);_圆半径
- )
- (princ)
- )
 - (defun c:tt (/ e)
- (fy:begin)
- (if (and (progn
- (princ "\n选择源Insert...")
- (setq e (ssget ":S" '((0 . "INSERT"))))
- )
- (progn
- (princ "\n选择匹配目标....")
- (ssget '((0 . "Insert")))
- )
- )
- (fy:mat (e2o (ssname e 0))
- (fy:cset->objs)
- ;;x比例 y比例 z比例 旋转角
- '(xscalefactor yscalefactor zscalefactor rotation)
- )
- )
- (princ)
- )
|