怎么会这么费劲???还有,FILLET输入半径后就退出命令了,要重新启动命令,与命令本身操作都不一样 勉强凑合出来...- (defun c:test( / ent pt ss ssf r ent1 ent2)
- (setq ent (car (entsel)))
- (setq pt (getpoint "\nPick a point:"))
- (setq r (getreal "\nEnter the radius:"))
- (command "_.explode" ent)
- (setq ss (ssget "p"))
- (setq ssf (ssget "p" (list '(-4 . "<or") (cons 10 pt) (cons 11 pt) '(-4 . "or>"))))
- (setq ent1 (ssname ssf 0) ent2 (ssname ssf 1))
- (ssdel ent1 ss)
- (ssdel ent2 ss)
- (command "_.pedit" ent1 "y" "j" ent2 "" "")
- (setq ent1 (entlast))
- (command "_.fillet" "t" "t" "r" r)
- (command "_.fillet" "p" ent1)
- (command "_.pedit" ent1 "j" ss "" "")
- (princ)
- )
|