
- ;;;acad.lsp部分
- (VMON)
- (defun bt (#str /)
- (grtext -1 (strcat "_当前命令为: " #str "__金戈__"))
- (princ)
- ) ;
- ;;;;2222
- (DEFUN C:2P ()
- (bt "两点圆")
- (COMMAND "CIRCLE" "2P")
- )
- (DEFUN C:3P () (COMMAND "CIRCLE" "3P"))
- ;;;Aaaa
- (Defun C:Dal ()
- (SETLAY "DIM" 1 "CONTINUOUS")
- (Command "Dim1" "Ali")
- )
- (Defun C:Ad () (Command "Attdef"))
- (Defun C:Ae () (Command "Attedit"))
- (Defun C:Ap () (Command "Aperture"))
- (Defun C:App () (Command "Appload"))
- (Defun C:Ar () (Command "Array"))
- (Defun C:At () (Command "Attext"))
- (Defun C:Att () (Command "Attdisp"))
- (Defun C:Ax () (Command "Axis"))
- ;;;Bbcc
- (Defun C:B () (Command "Block"))
- (Defun C:Ba () (Command "Base"))
- (Defun C:Bm () (Command "Blipmode"))
- (Defun C:C ()
- (Bt "Circle")
- (SETLAY "1" 4 "CONTINUOUS")
- (Command "Circle")
- )
- (Defun C:Cf () (Command "Chamfer"))
- (Defun C:Cg () (Command "Change"))
- (Defun C:Cgl () (Command "Change" "L" ""))
- (Defun C:Con () (Command "Dim1" "Con"))
- (Defun C:Cp ()
- (Bt "Copy")
- (Command "Copy")
- (Princ)
- )
- ;;;Dddd
- (Defun C:D () (Command "Dist"))
- (Defun C:Dd () ; (/ Ss1 Ent Ent1 Ent2)
- (Setq Ss1 (Entsel "\n 请选择目标实体:..."))
- (If Ss1
- (Progn
- (Setq Ent (Entget (Car Ss1)))
- (Setq Ent1 (Cdr (Assoc 0 Ent))
- Ent2 (Cdr (Assoc -1 Ent))
- )
- (Cond
- ((Or (= "DIMENSION" Ent1) (= "TEXT" Ent1) (= "MTEXT" Ent1))
- (Command "Ddedit" Ent2)
- )
- ((= "INSERT" Ent1) (Command "Ddatte" Ent2))
- (Prompt
- (Strcat "\N 您选中的实体是" Ent1 ",不能用文本编辑...")
- )
- ) ;Cond
- ) ;Progn
- (Prompt "\n 没有选择的可编辑的实体!..")
- )
- ;;If
- (Princ)
- )
|