- ;以直线镜像功能
- (defun C:KJ_ML( / bl cm e1 ent0 ent1 os p1 p2 ss1)
- (SetQ cm (GetVar "cmdecho") bl (GetVar "blipmode") os (GetVar "osmode"))
- (SetVar "cmdecho" 0)
- (SetVar "blipmode" 0)
- (SetVar "osmode" 0)
- (PRINC "\n【開金CAD外挂】---以直线镜像功能")
- (while(PRINC "\n-->请选取要镜像的对象......")
- (setq ent0 (ssget":s"))
- (setq ent1 (entsel "\n-->请选择镜像中心直线:")
- e1 (car ent1)
- ss1 (entget e1))
- (setq p1 (Cdr (Assoc 10 ss1))
- p2 (Cdr (Assoc 11 ss1)))
- (command "mirror" ent0 ""p1 p2 ""))
- (SetVar "cmdecho" cm)
- (SetVar "blipmode" bl)
- (SetVar "osmode" os)
- (princ "\n★★★欢迎使用--《開金CAD外挂》--★★★ 以直线镜像完成!")
- (PrinC)
- )
|