李·麦克再次请客。谢谢你
我该如何标记到这个lisp的末尾?
-
- (defun c:FF (/ *error* LastEntity OldLayoer pt eLast ent)
- ;;
- (defun *error* ( msg )
- (and OldLayer (setvar "CLAYER" OldLayer))
- (or (wcmatch (strcase msg) "*BREAK,*CANCEL*,*EXIT*")
- (princ (strcat "\n** Error: " msg " **")))
- (princ))
- (setq LastEntity (entlast) OldLayer (getvar "CLAYER"))
- (or (tblsearch "LAYER" "flex-cr")
- (command "_.-layer" "_M" "flex-cr" ""))
- ;;
- (setvar 'filletrad
- (cond ((getdist (strcat "\nSpecify radius of flex bends <" (rtos (getvar 'filletrad)) ">: ")))
- ((getvar 'filletrad))
- )
- )
- (if (setq pt (getpoint "\nSpecify start point: "))
- (progn
- ; (setq eLast (entlast))
- (setvar "CLAYER" "flex-cr")
- (command "_.pline" "_non" pt)
- (while (= 1 (logand (getvar 'cmdactive) 1))
- (princ "\nSpecify next point: ")
- (command PAUSE)
- )
- (or (equal eLast (setq ent (entlast)))
- (command "_.fillet" "_P" ent)
- )
- )
- )
- (setvar "CLAYER" OldLayer)
- (princ)
- )
.
此lisp创建了弹性线。口齿不清沿着它放了一条之字形的线。
这将是伟大的有这一切在一个打击。
|