找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 1525|回复: 5

[求助] [求助]:两个lsp怎么不能同时用

[复制链接]
发表于 2006-8-8 10:21:23 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
第一个关联移动
第二个选择易
同时加载后,1:先运行第一个时,第二个不能用
          2 :先运行第二个时,第一个不能用


第一个关联移动
=======================================


======================
;;Associate (SUPER) move----------------------------------------------------------------------
(defun c:m( / ss)
(prompt "Select objects:")(setq ss (ssget))
(if ss (command "move" ss "")(progn (princ "\n -->[Assosiate-Move]")
(#sm)))
(princ ))

(defun c:test1()(#sm))
(defun #sm()(setq olderr *error* *error* myerr)
(setq ot (getvar  "orthomode"))
(setvar "orthomode" 1)(move-1) (setvar "orthomode" ot)(setq *error* olderr) (princ))
(defun move-1(/ en ens enx ENT pt ss1 ss2 ss3 xlst xlsd p1 lst lsd n)
  
(defun #sms (en2 a b / p1 )
(if (vlax-curve-getparamatpoint en (dxf en2 a))(setq p1 a))
(if (vlax-curve-getparamatpoint en (dxf en2 b))(setq p1 b))
(if p1 (list en2 p1))    );

; main
(setvar "cmdecho" 0)(princ "\nSelect Objects: ")
(setq end (ssget))(setq ss2 (#ss2lst end))
  
(if (setq ens (ssget "p" '((0 . "LINE"))))
(progn ;(setq n 0 lst (list) lsd (list) )
       (repeat (setq n (sslength ens))
       (setq ent (entget (setq en (ssname ens (setq n (1- n))))))
       (setq ss1  (ssget "c" (dxf ent 10)(dxf ent 11) '((0 . "LINE")))
             xlst (vl-remove-if 'null (mapcar '(lambda (x) (#sms x 10 11))(lst-lst (#ss2lst ss1) ss2) ))
             ss3  (ssget "c" (dxf ent 10)(dxf ent 11) '((0 . "DIMENSION")))
             xlsd (vl-remove-if 'null (mapcar '(lambda (x) (#sms x 13 14))(lst-lst (#ss2lst ss3) ss2) )) )
       (setq lst  (cons (list en xlst ) lst ))
       (if xlsd (setq lsd (cons (list en xlsd) lsd)))
       );repeat
  ));if
   
(foreach ls xlsd  (redraw  (car ls) 3))
(setvar "cmdecho" 1)
(if end (command "move" end ""))
(while (/= 0 (getvar "cmdactive")) (command pause))
(setvar "cmdecho" 0)

(foreach lt lst
     (setq en (car lt) xlst (cadr lt))
     (foreach ls xlst (if (setq pt (car (#inpt en (car ls) 2) ))
                        (progn (setq p1 (cadr ls) enx (entget (car ls)))
                        (entmod (subst (cons p1 pt)(assoc p1 enx) enx))
            ));if
));2foreach

(foreach lt lsd   
    (setq en (car lt) xlsd (cadr lt))
    (foreach ls xlsd  
       (setq enx (entget (car ls)) p1 (cadr ls))
       (setq pt (vlax-curve-getClosestPointTo en (dxf enx p1) ))
       (entmod (subst (cons p1 pt)(assoc p1 enx) enx))
));foreach  
(princ))

(defun myerr(msg)(setq *error* olderr)  (setvar "orthomode" ot) (princ)  )

(defun #ss2lst (s / n ls) ;;;转换选择集为表
(if s (repeat (setq n (sslength s))(setq ls (cons (ssname s (setq n (1- n))) ls)))))

(defun lst-lst( a b ) (vl-remove-if '(lambda(x)(member x b)) a))
(defun dxf(ent i)(if (= (type ent) 'ename)(setq ent (entget ent)))(cdr (assoc i ent)))
(defun #inpt (e1 e2 k / lst lst2)
(setq lst (vlax-invoke(vlax-ename->vla-object e1)'intersectwith(vlax-ename->vla-object e2) k))
(if lst (repeat (/ (length lst) 3)(setq lst2 (cons (list (car lst)(cadr lst)(caddr lst)) lst2) lst (cdddr lst))))
(reverse lst2))
---------------

第二个选择易
======================================================
(defun c:test2 ( / f dcl_name slent lst1 color tmp index_value flag entl lst3 lst4 code ktmp klst lst4 fjlst filter hand pre all ss fjflt ssl)
  (setq slent (car (entsel "\n请选择样板实体:")))
  (setq entl (entget slent))     
  (setq lst2 '(
("通用" ((0 "实体类型") (6 "实体线型") (8 "所在图层") (48 "线型比例") (62 "实体颜色" ((256 "随层") (0 "随块") (1 "红色") (2 "黄色") (3 "绿色") (4 "青色") (5 "蓝色") (6 "紫色") (7 "黑白"))) (370 "实体线宽")))
("ARC" ((-4 "圆弧") (10 "圆心坐标") (40 "圆弧半径") (39 "实体厚度") (50 "起点角度") (51 "终点角度")))
("CIRCLE" ((-4 "圆形") (10 "圆心坐标") (40 "圆形半径") (39 "实体厚度")))
("SOLID" ((-4 "SOLID") (39 "实体厚度")))
("POINT" ((-4 "点") (10 "点的位置") (39 "实体厚度") (50 "旋转角度")))
("LINE" ((-4 "直线段") (10 "起点坐标") (11 "终点坐标") (39 "实体厚度")) ("FJ" ("FJ1" "线段长度" (DISTANCE (DXF 10 slent) (DXF 11 slent))) ("FJ2" "线段角度" (REM (ATOF (ANGTOS (ANGLE (DXF 10 slent) (DXF 11 slent)))) 180))))
("ELLIPSE" ((-4 "椭圆") (10 "椭圆中心") (11 "长轴端点") (40 "长短轴比") (41 "开始参数") (42 "结束参数")))
("INSERT" ((-4 "图块") (10 "图块位置") (2 "图块名称") (41 "X 轴比例") (42 "Y 轴比例") (43 "Z 轴比例") (50 "旋转角度")) ("FJ" ("FJ1" "属性标志" (car (attstr slent))) ("FJ2" "属性数值" (cadr (attstr slent)))))("LWPOLYLINE" ((-4 "轻多义线") (38 "复线标高") (43 "固定宽度") (90 "顶点个数") (39 "复线厚度") (70 "是否闭合" ((0 "不闭合") (1 "闭合")))))
("POLYLINE" ((-4 "重多义线") (70 "是否闭合" ((0 "不闭合") (1 "闭合")))))
("HATCH" ((-4 "图案填充") (2 "填充图案") (41 "填充比例") (52 "填充角度") (71 "边界关联" ((0 "不关联") (1 "关联"))) (76 "图案类型" ((0 "用户定义") (1 "预定义") (2 "自定义")))))
("TEXT" ((-4 "文字") (1 "文字内容") (7 "文字样式") (10 "插入位置") (40 "文字高度") (41 "宽度系数") (50 "旋转角度") (51 "倾斜角度") (71 "文字镜像" ((0 "默认") (2 "文字反向") (4 "文字倒置") (6 "反向倒置"))) (72 "水平对齐" ((0 "左对齐") (1 "居中对齐") (2 "右对齐") (3 "对齐") (4 "中间") (5 "拟合"))) (73 "垂直对齐" ((0 "基线对齐") (1 "底端对齐") (2 "居中对齐") (3 "顶端对齐")))) ("FJ" ("FJ1" "文字数值" (ATOF (DXF 1 slent)))))
("ATTDEF" ((-4 "属性定义") (2 "属性标记") (7 "字型样式") (10 "插入位置") (40 "文字高度") (50 "旋转角度") (51 "倾斜角度") (71 "文字镜像" ((0 "默认") (2 "文字反向") (4 "文字倒置") (6 "反向倒置"))) (72 "水平对齐" ((0 "左对齐") (1 "居中对齐") (2 "右对齐") (3 "对齐") (4 "中间") (5 "拟合"))) (73 "垂直对齐" ((0 "基线对齐") (1 "底端对齐") (2 "居中对齐") (3 "顶端对齐")))) ("FJ" ("FJ1" "标记数值" (ATOF (DXF 2 slent)))))
("MTEXT" ((-4 "多行文字") (10 "插入位置") (1 "文字内容") (7 "文字样式") (40 "文字高度") (50 "旋转角度")))
("SPLINE" ((-4 "样条曲线") (70 "曲线标志") (71 "曲线阶数") (72 "节点数量") (73 "控制点数") (74 "拟合点数") (42 "节点公差") (43 "控点公差") (44 "拟合公差")))
("DIMENSION" ((-4 "尺寸标注") (1 "标注文字") (42 "测量值") (3 "标注样式") (70 "标注类型" ((32 "水平垂直") (33 "对齐标注") (34 "角度标注") (35 "直径标注") (36 "半径标注") (37 "三点角度") (38 "坐标标注")))))
)
);;setq lst2
  (setq lst3 (car (dxf "通用" lst2))
    lst5 (dxf (dxf 0 entl) lst2)
    lst4 (car lst5)
    lst5 (cadr lst5)
  )
  (foreach tmp lst3
    (if (and (not (dxf (car tmp) entl)) (/= (car tmp) 62)) (setq lst3 (vl-remove tmp lst3)))
  );;foreach
  (setq dcl_name (strcat (getenv "temp") "\sel" ".dcl")
        f (OPEN dcl_name "w"))
  (write-line "sl:dialog{label=\"我的选择易\";" f)
  (write-line ":column{" f)
  (write-line ":boxed_column{label=\"过滤条件\";" f)
  (write-line ":boxed_column{label=\"通用\";" f)
  (foreach tmp lst3
     (write-line ":row{fixed_width=true;" f)
     (write-line (strcat ":toggle{key=\"" (itoa (car tmp)) "\";label=\"" (cadr tmp) "\";width=12;}") f)
     (write-line (strcat ":popup_list{edit_width=5;key=\"pop" (itoa (car tmp)) "\";}") f)
     (setq ktmp (list (strcat "pop" (itoa (car tmp))) (itoa (car tmp))))
    (if  (/= 62 (car tmp))
      (progn
      (setq ktmp (write f ktmp (car tmp) (vl-princ-to-string (dxf (car tmp) entl)) "txt" "16"))
      (if (= 48 (car tmp))
        (setq ktmp (write f ktmp 48 "容差" "txta" "7"))
      );;if
       );;progn
       (progn
      (setq color (dxf 62 entl))  (if (not color) (setq color 256))
     (setq ktmp (write f ktmp 62 (itoa color) "txt" "16"))
         (write-line (strcat ":edit_box{value=\"" (vl-princ-to-string (car (dxf color (caddr tmp)))) "\";edit_width=7 ;allow_accept=true;}") f)
    );progn
      );;if
     (write-line "}" f)
    (setq klst (cons (reverse ktmp) klst))
  );;foreach
  (write-line "}" f)
  (write-line (strcat ":boxed_column{label=\"" (vl-princ-to-string (car (dxf -4 lst4))) "\";") f)
  (setq lst4 (cdr lst4)) ;;去掉前面的-4组码
  (foreach tmp lst4
    (setq code (car tmp) ktmp nil)
    (if (dxf code entl) (progn
    (write-line ":row{fixed_width=true;" f)
    (setq ktmp (list (strcat "pop" (itoa code)) (itoa code)))
    (write-line (strcat ":toggle{key=\"" (itoa code) "\";label=\"" (vl-princ-to-string (cadr tmp)) "\";width=12;}") f)
    (write-line (strcat ":popup_list{edit_width=5;key=\"pop" (itoa code) "\";}") f)
    (cond ((or (= code 10) (= code 11))
       (setq ktmp (write f ktmp code (vl-princ-to-string (car (dxf code entl))) "txt_x" "6.5"))
       (setq ktmp (write f ktmp code (vl-princ-to-string (cadr (dxf code entl))) "txt_y" "6"))
       (setq ktmp (write f ktmp code (vl-princ-to-string (caddr (dxf code entl))) "txt_z" "7"))
      )
      ((member code '(1 2 3 7 90 38 39 40 41 42 43 44 50 51 52 70 71 72 73 74 76))
       (setq ktmp (write f ktmp code (vl-princ-to-string (dxf code entl)) "txt" "16"))
         (cond ((member code '(38 39 40 41 42 43 44 50 51 52))
            (setq ktmp (write f ktmp code "容差" "txta" "7"))
               )
           ((member code '(70 71 72 73 74 76))
            (if (car (dxf (dxf code entl) (cadr (dxf code lst4))))
             (write-line (strcat ":edit_box{value=\"" (vl-princ-to-string (car (dxf (dxf code entl) (cadr (dxf code lst4))))) "\";edit_width=7;allow_accept=true;}") f)
                );if
           )
         );;cond
      )
    );;cond
    (write-line "}" f)
    ));;progn & if
    (if ktmp (setq klst (cons (reverse ktmp) klst)))
  );;foreach
  (write-line "}" f)
  (if lst5 (progn (setq lst5 (cdr lst5) ) ;;去掉lst5第一个元素"FJ"
    (write-line ":boxed_column{label=\"附加过滤\";" f)
    (foreach tmp lst5
       (write-line ":row{fixed_width=true;" f)
       (write-line (strcat ":toggle{key=\"" (car tmp) "\";label=\"" (cadr tmp) "\";width=12;}") f)
       (write-line (strcat ":popup_list{edit_width=5;key=\"pop" (car tmp) "\";}") f)
       (setq ktmp (list (strcat "pop" (car tmp)) (car tmp)))
       (setq ktmp (write f ktmp (car tmp) (vl-princ-to-string (eval (caddr tmp))) "txt" "16"))
       (setq ktmp (write f ktmp (car tmp) "容差" "txta" "7"))
       (setq fjlst (cons (reverse ktmp) fjlst))  ;;fjlst是附加过滤条件的变量表
       (write-line "}" f)
    );;foreach
    (write-line "}" f)
  ));if lst5
  (write-line "}:row{:boxed_radio_row{label=\"过滤范围\";" f)
  (write-line ":radio_button{label=\"手选\";key=\"hand\";value=\"1\";}" f)
  (write-line ":radio_button{label=\"预选\";key=\"pre\";}" f)
  (write-line ":radio_button{label=\"全图\";key=\"all\";}" f)
  (write-line "}}:row{ok_cancel;}}}" f)
  (close f)
  (setq klst (reverse klst))
  (setq index_value (load_dialog dcl_name));_加载dcl文件
  (new_dialog "sl" index_value);_开始新对话框
  (foreach tmp klst  ;;klst为变量表,第三项开始含有变量名及初始值
    ;;如:'(("0" "pop0" ("txt0" "INSERT")) ("8" "pop8" ("txt8" "_消防报警")) ("62" "pop62" ("txt62" "256"))
    ;;("10" "pop10" ("txt_x10" "3431.58") ("txt_y10" "-17355.0") ("txt_z10" "0.0")) ("2" "pop2" ("txt2" "RXF008"))
    ;;("41" "pop41" ("txt41" "-64.0") ("txta41" "容?..
    (cond ((member (car tmp) '("0" "1" "2" "3" "6" "7" "8")) (show_list (cadr tmp) '("=" "<>")))
      ((member (car tmp) '("10" "11" "38" "39" "40" "41" "42" "43" "44" "48" "50" "51" "52")) (show_list (cadr tmp) '("=" "<" ">" "<=" ">=" "<>")))
      ((member (car tmp) '("62" "70" "71" "72" "73" "74" "76" "90")) (show_list (cadr tmp) '("=" "<" ">" "<=" ">=" "<>" "&" "&=")))
    );;cond
  );;foreach 显示下拉选单信息
  (if fjlst (foreach tmp fjlst (show_list (cadr tmp) '("=" "<" ">" "<=" ">=" "<>"))));;;;end if fjlst;显示附加过滤下拉选单信息
        ;;;;fjlst是附加过滤条件的变量表,如:'(("FJ3" "popFJ3" ("txtFJ3" "0.0") ("txtaFJ3" "容差")) ("FJ2" "popFJ2" ("txtFJ2" "0.0")
                                            ;;("txtaFJ2" "容差")) ("FJ1" "popFJ1" ("txtFJ1" "0.0") ("txtaFJ1" "容差")))
  (if kl_pre
    (foreach tmp (cdr kl_pre)
        (if (= (dxf 0 entl) (car kl_pre))
            (set_tile (car tmp) "1")
            (if (member (car tmp) '("0" "6" "8" "48" "62" "370"))
            (set_tile (car tmp) "1")
        );;end if
    );;end if
    );;foreach
  ) ;;把上次选中的复选框设为选中状态
  (action_tile "accept" "(get_filter) (done_dialog 1)")
  (setq flag (start_dialog))
  (unload_dialog index_value)
  (if filter (progn (princ "\n使用过滤器:")
           (princ filter)
           (cond ((= hand "1") (setq ss (ssget filter)))
             ((= pre "1") (setq ss (ssget "p" filter)))
             ((= all "1") (setq ss (ssget "x" filter)))
        );;cond
  ));;end if filter
  (if (and (setq ssl (chsget ss)) fjflt)
      (foreach slent ssl (if (not (eval fjflt)) (setq ss (ssdel slent ss))))
  );;end if
(if ss (progn (princ (strcat "\n共选中了" (itoa (sslength ss)) "个实体。")) (command "select" ss "" "pselect" ss "")))
  ss
);;defun
(defun get_filter ( / tmp pop txt txt1 rc txt2 txt3 poptmp)
  (setq hand (get_tile "hand")
    pre (get_tile "pre")
    all (get_tile "all")
  )
  (foreach tmp klst (if (/= "1" (get_tile (car tmp))) (setq klst (vl-remove tmp klst))))
  ;(setq kl_pre klst)
  (foreach tmp fjlst (if (/= "1" (get_tile (car tmp))) (setq fjlst (vl-remove tmp fjlst))))
  (setq kl_pre (append (list (dxf 0 entl))klst fjlst)) ;;附加过滤选中的项下次使用也成为缺省选中
  (foreach tmp klst
    (setq pop (get_tile (cadr tmp)))
    (cond ((member (car tmp) '("0" "1" "2" "3" "6" "7" "8"))
       (cond ((= pop "0") (setq txt (get_tile (caaddr tmp))
                    filter (append (cons '(-4 . "<OR") (cons (cons (read (car tmp)) txt) '((-4 . "OR>")))) filter)
                  );;setq
         )
         ((= pop "1")  (setq txt (get_tile (caaddr tmp))
                     filter (append (cons '(-4 . "<NOT") (cons (cons (read (car tmp)) txt) '((-4 . "NOT>")))) filter)
                  );;setq
         )
       );;cond
      );;end member
      ((member (car tmp) '("62" "70" "71" "72" "73" "74" "76" "90"))
          (setq txt (get_tile (caaddr tmp))
                        filter (append
                                   (cons (cons -4 (nth (read pop) '("=" "<" ">" "<=" ">=" "<>" "&" "&="))) (list (cons (read (car tmp)) (read txt))))
                                  filter
                          );;append
              );;setq
      )
      ((member (car tmp) '("38" "39" "40" "41" "42" "43" "44" "48" "50" "51" "52"))
           (setq txt (get_tile (caaddr tmp))
             txt1 (cadr (caddr tmp))
             rc (read (get_tile (car (last tmp))))
        );;setq
        (if (/= txt txt1) (setq txt (atof txt)) (setq txt (dxf (read (car tmp)) entl))) ;;如果(car tmp)对应的值未被用户修改过,取回原来的实数数值
                (if (and (or (= (type rc) 'REAL) (= (type rc) 'INT)) (= pop "0")) ;;如果设置了容差,且为数值型,过滤条件为"="时要处理容差
               (setq filter (append ;;处理容差
                                        (cons '(-4 . "<=") (list (cons (read (car tmp)) (+ txt (abs rc)))))
                       (cons '(-4 . ">=") (list (cons (read (car tmp)) (- txt (abs rc)))))
                                       filter
                                    );;append
                );;setq
                    (setq filter (append    ;不处理容差
                                   (cons (cons -4 (nth (read pop) '("=" "<" ">" "<=" ">=" "<>"))) (list (cons (read (car tmp)) txt)))
                                  filter
                          );;append
                    );;setq
        );;end of if 容差
      )
      ((member (car tmp) '("10" "11"))
       (setq txt1 (get_tile (caaddr tmp))
         txt2 (get_tile (car (cadddr tmp)))
         txt3 (get_tile (car (last tmp)))
         poptmp (nth (read pop) '("=" "<" ">" "<=" ">=" "<>"))
       );;setq
       (if (/= txt1 (cadr (caddr tmp))) (setq txt1 (atof txt1)) (setq txt1 (car (dxf (read (car tmp)) entl))));;如果坐标对应的值未被用户修改过,取回原来的实数数值
       (if (/= txt2 (cadr (cadddr tmp))) (setq txt2 (atof txt2)) (setq txt2 (cadr (dxf (read (car tmp)) entl))))
       (if (/= txt3 (cadr (last tmp))) (setq txt3 (atof txt3)) (setq txt3 (caddr (dxf (read (car tmp)) entl))))
       (setq filter (append
                (cons (cons -4 (strcat poptmp "," poptmp "," poptmp)) (list (cons (read (car tmp)) (list txt1 txt2 txt3))))
                filter   
            )
        )
      );;end of member (car tmp) '("10" "11")
    );;cond
  );;foreach tmp klst
  (if fjlst (progn
          (if (null filter) (setq filter (list (assoc 0 entl))))  ;;如果仅选中的附加条件,则将filter设为样板实体的别
          (setq fjflt '(and))
          (foreach tmp fjlst
        (setq pop (get_tile (cadr tmp))
              txt (get_tile (caaddr tmp))
              txt1 (cadr (caddr tmp))
              rc (read (get_tile (car (last tmp))))
        );;setq
        (if (/= txt txt1) (setq txt (atof txt)) (setq txt (eval (cadr (dxf (car tmp) lst5))))) ;;如果(car tmp)对应的值未被用户修改过,取回原来的实数数值
                (if (and (or (= (type rc) 'REAL) (= (type rc) 'INT)) (= pop "0")) ;;如果设置了容差,且为数值型,过滤条件为"="时要处理容差
               (setq fjflt (append ;;处理容差
                                           fjflt
                       (list (list 'and
                          (list '<= (cadr (dxf (car tmp) lst5)) (+ txt (abs rc)))
                          (list '>= (cadr (dxf (car tmp) lst5)) (- txt (abs rc)))
                       ))
                                    );;append
                );;setq
                    (setq fjflt (append    ;不处理容差
                                    fjflt
                    (list (list (read (nth (read pop) '("=" "<" ">" "<=" ">=" "<>"))) (cadr (dxf (car tmp) lst5)) txt))
                          );;append
                    );;setq
        );;end of if 容差
          );;foreach fjlst
  ));;end if fjlst
);;defun
(defun show_list ( key lst)
  (start_list key)
  (mapcar 'add_list lst)
  (end_list)
);;defun
(defun write (f ktmp code value txt width / tmp)
   (setq tmp (strcat txt (vl-princ-to-string code)))
   (write-line (strcat ":edit_box{value=\"" value "\";key=\"" tmp "\";edit_width=" width ";allow_accept=true;}") f)
   (setq ktmp (cons (list tmp value) ktmp))
);;defun
(defun attstr (slent / tmp str1 str2)
  (setq str1 "" str2 "")
  (foreach tmp (vxgetatts slent)
    (setq str1 (strcat str1 (car tmp))
      str2 (strcat str2 (cdr tmp))
    )
  )
  (list str1 str2)
);;defun
(defun dxf ( i ent)
    (if (= (type ent) 'ENAME)
      (setq ent (entget ent))
    )
    (cdr (assoc i ent))
);;defun
(defun chsget ( c01 / c02 c03 c04 c05)
   (if c01 (progn
           (setq c02 0 c03 (sslength c01))
           (while (< c02 c03)
              (setq c04 (ssname c01 c02)
                    c02 (1+ c02))
              (setq c05 (cons c04 c05))
           )  ;end of while
           )  ;end of progn
    )  ;end of if
    c05
)  ;end of defun
(defun VxGetAtts (Obj)
(if (= (type Obj) 'ENAME) (setq Obj (vlax-ename->vla-object Obj)))   
  (mapcar
    '(lambda (Att)
       (cons (vla-get-TagString Att)
         (vla-get-TextString Att)
       )
     )
    (vlax-invoke Obj "GetAttributes")
  )
)
(if (not (member "acopm.arx" (arx))) (arxload "acopm.arx"))
(princ)
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
发表于 2006-8-8 11:54:15 | 显示全部楼层
把提示信息贴出来看看
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

已领礼包: 1个

财富等级: 恭喜发财

发表于 2006-8-8 12:25:44 | 显示全部楼层
存在同名函数,或有变量用过后没释放
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-8 12:54:19 | 显示全部楼层
看提示


帮忙怎么解决这个问题
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

已领礼包: 7234个

财富等级: 富甲天下

发表于 2006-8-8 14:50:05 | 显示全部楼层
(defun dxf (ent i)
  (if (= (type ent) 'ename)
    (setq ent (entget ent))
  )
  (cdr (assoc i ent))
)

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

(defun dxf (i ent)
  (if (= (type ent) 'ENAME)
    (setq ent (entget ent))
  )
  (cdr (assoc i ent))
)
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-9 16:15:38 | 显示全部楼层
谢谢搞定了
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|申请友链|Archiver|手机版|小黑屋|辽公网安备|晓东CAD家园 ( 辽ICP备15016793号 )

GMT+8, 2024-11-18 13:41 , Processed in 0.389542 second(s), 43 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表