找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 2195|回复: 11

[每日一码] 批量加载TIF格式影像文件

[复制链接]
发表于 2018-3-22 09:28:26 | 显示全部楼层 |阅读模式

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

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

×
autolisp根据tfw文件,自动判断影像坐标,加载影像。(文件选择程序来自网络)

  1. (defun AddTif ( msg def ext / *error* dch dcl des dir dirdata lst rtn )

  2.     (defun *error* ( msg )
  3.         (if (= 'file (type des))
  4.             (close des)
  5.         )
  6.         (if (and (= 'int (type dch)) (< 0 dch))
  7.             (unload_dialog dch)
  8.         )
  9.         (if (and (= 'str (type dcl)) (findfile dcl))
  10.             (vl-file-delete dcl)
  11.         )
  12.         (if (and msg (not (wcmatch (strcase msg t) "*break,*cancel*,*exit*")))
  13.             (princ (strcat "\nError: " msg))
  14.         )
  15.         (princ)
  16.     )   
  17.    
  18.     (if
  19.         (and
  20.             (setq dcl (vl-filename-mktemp nil nil ".dcl"))
  21.             (setq des (open dcl "w"))
  22.             (progn
  23.                 (foreach x
  24.                    '(
  25.                         "lst : list_box"
  26.                         "{"
  27.                         "    width = 40.0;"
  28.                         "    height = 20.0;"
  29.                         "    fixed_width = true;"
  30.                         "    fixed_height = true;"
  31.                         "    alignment = centered;"
  32.                         "    multiple_select = true;"
  33.                         "}"
  34.                         "but : button"
  35.                         "{"
  36.                         "    width = 20.0;"
  37.                         "    height = 1.8;"
  38.                         "    fixed_width = true;"
  39.                         "    fixed_height = true;"
  40.                         "    alignment = centered;"
  41.                         "}"
  42.                         "getfiles : dialog"
  43.                         "{"
  44.                         "    key = \"title\"; spacer;"
  45.                         "    : row"
  46.                         "    {"
  47.                         "        alignment = centered;"
  48.                         "        : edit_box { key = \"dir\"; label = \"目录\"; }"
  49.                         "        : button"
  50.                         "        {"
  51.                         "            key = \"brw\";"
  52.                         "            label = \"浏览\";"
  53.                         "            fixed_width = true;"
  54.                         "        }"
  55.                         "    }"
  56.                         "    spacer;"
  57.                         "    : row"
  58.                         "    {"
  59.                         "        : column"
  60.                         "        {"
  61.                         "            : lst { key = \"box1\"; }"
  62.                         "            : but { key = \"add\" ; label = \"添加文件\"; }"
  63.                         "        }"
  64.                         "        : column {"
  65.                         "            : lst { key = \"box2\"; }"
  66.                         "            : but { key = \"del\" ; label = \"移除文件\"; }"
  67.                         "        }"
  68.                         "    }"
  69.                         "    spacer; ok_cancel;"
  70.                         "}"
  71.                     )
  72.                     (write-line x des)
  73.                 )
  74.                 (setq des (close des))
  75.                 (< 0 (setq dch (load_dialog dcl)))
  76.             )
  77.             (new_dialog "getfiles" dch)
  78.         )
  79.         (progn
  80.             (setq ext (if (= 'str (type ext)) (LM:getfiles:str->lst (strcase ext) ";") '("*")))
  81.             (set_tile "title" (if (member msg '(nil "")) "文件选择 BY END." msg))
  82.             (set_tile "dir"
  83.                 (setq dir
  84.                     (LM:getfiles:fixdir
  85.                         (if (or (member def '(nil "")) (not (vl-file-directory-p (LM:getfiles:fixdir def))))
  86.                             (getvar 'dwgprefix)
  87.                             def
  88.                         )
  89.                     )
  90.                 )
  91.             )
  92.             (setq lst (LM:getfiles:updatefilelist dir ext nil))
  93.             (mode_tile "add" 1)
  94.             (mode_tile "del" 1)

  95.             (action_tile "brw"
  96.                 (vl-prin1-to-string
  97.                    '(if (setq tmp (LM:getfiles:browseforfolder "" nil 512))
  98.                         (setq lst (LM:getfiles:updatefilelist (set_tile "dir" (setq dir tmp)) ext rtn)
  99.                               rtn (LM:getfiles:updateselected dir rtn)
  100.                         )                              
  101.                     )
  102.                 )
  103.             )

  104.             (action_tile "dir"
  105.                 (vl-prin1-to-string
  106.                    '(if (= 1 $reason)
  107.                         (setq lst (LM:getfiles:updatefilelist (set_tile "dir" (setq dir (LM:getfiles:fixdir $value))) ext rtn)
  108.                               rtn (LM:getfiles:updateselected dir rtn)
  109.                         )
  110.                     )
  111.                 )
  112.             )

  113.             (action_tile "box1"
  114.                 (vl-prin1-to-string
  115.                    '(
  116.                         (lambda ( / itm tmp )
  117.                             (if (setq itm (mapcar '(lambda ( n ) (nth n lst)) (read (strcat "(" $value ")"))))
  118.                                 (if (= 4 $reason)
  119.                                     (cond
  120.                                         (   (equal '("..") itm)
  121.                                             (setq lst (LM:getfiles:updatefilelist (set_tile "dir" (setq dir (LM:getfiles:updir dir))) ext rtn)
  122.                                                   rtn (LM:getfiles:updateselected dir rtn)
  123.                                             )
  124.                                         )
  125.                                         (   (vl-file-directory-p (setq tmp (LM:getfiles:checkredirect (strcat dir "\\" (car itm)))))
  126.                                             (setq lst (LM:getfiles:updatefilelist (set_tile "dir" (setq dir tmp)) ext rtn)
  127.                                                   rtn (LM:getfiles:updateselected dir rtn)
  128.                                             )
  129.                                         )
  130.                                         (   (setq rtn (LM:getfiles:sort (append rtn (mapcar '(lambda ( x ) (strcat dir "\\" x)) itm)))
  131.                                                   rtn (LM:getfiles:updateselected dir rtn)
  132.                                                   lst (LM:getfiles:updatefilelist dir ext rtn)
  133.                                             )
  134.                                         )
  135.                                     )
  136.                                     (if (vl-every '(lambda ( x ) (vl-file-directory-p (strcat dir "\\" x))) itm)
  137.                                         (mode_tile "add" 1)
  138.                                         (mode_tile "add" 0)
  139.                                     )
  140.                                 )
  141.                             )
  142.                         )
  143.                     )
  144.                 )
  145.             )

  146.             (action_tile "box2"
  147.                 (vl-prin1-to-string
  148.                    '(
  149.                         (lambda ( / itm )
  150.                             (if (setq itm (mapcar '(lambda ( n ) (nth n rtn)) (read (strcat "(" $value ")"))))
  151.                                 (if (= 4 $reason)
  152.                                     (setq rtn (LM:getfiles:updateselected dir (vl-remove (car itm) rtn))
  153.                                           lst (LM:getfiles:updatefilelist dir ext rtn)
  154.                                     )
  155.                                     (mode_tile "del" 0)
  156.                                 )
  157.                             )
  158.                         )
  159.                     )
  160.                 )
  161.             )

  162.             (action_tile "add"
  163.                 (vl-prin1-to-string
  164.                    '(
  165.                         (lambda ( / itm )
  166.                             (if
  167.                                 (setq itm
  168.                                     (vl-remove-if 'vl-file-directory-p
  169.                                         (mapcar '(lambda ( n ) (nth n lst)) (read (strcat "(" (get_tile "box1") ")")))
  170.                                     )
  171.                                 )
  172.                                 (setq rtn (LM:getfiles:sort (append rtn (mapcar '(lambda ( x ) (strcat dir "\\" x)) itm)))
  173.                                       rtn (LM:getfiles:updateselected dir rtn)
  174.                                       lst (LM:getfiles:updatefilelist dir ext rtn)
  175.                                 )
  176.                             )
  177.                             (mode_tile "add" 1)
  178.                             (mode_tile "del" 1)
  179.                         )
  180.                     )
  181.                 )
  182.             )

  183.             (action_tile "del"
  184.                 (vl-prin1-to-string
  185.                    '(
  186.                         (lambda ( / itm )
  187.                             (if (setq itm (read (strcat "(" (get_tile "box2") ")")))
  188.                                 (setq rtn (LM:getfiles:updateselected dir (LM:getfiles:removeitems itm rtn))
  189.                                       lst (LM:getfiles:updatefilelist dir ext rtn)
  190.                                 )
  191.                             )
  192.                             (mode_tile "add" 1)
  193.                             (mode_tile "del" 1)
  194.                         )
  195.                     )
  196.                 )
  197.             )
  198.          
  199.             (if (zerop (start_dialog))
  200.                 (setq rtn nil)
  201.             )
  202.         )
  203.     )
  204.     (*error* nil)
  205.     rtn
  206.     (yxpj rtn)
  207. )

  208. (defun LM:getfiles:listbox ( key lst )
  209.     (start_list key)
  210.     (foreach x lst (add_list x))
  211.     (end_list)
  212.     lst
  213. )

  214. (defun LM:getfiles:listfiles ( dir ext lst )
  215.     (vl-remove-if '(lambda ( x ) (member (strcat dir "\\" x) lst))
  216.         (cond
  217.             (   (cdr (assoc dir dirdata)))
  218.             (   (cdar
  219.                     (setq dirdata
  220.                         (cons
  221.                             (cons dir
  222.                                 (append
  223.                                     (LM:getfiles:sortlist (vl-remove "." (vl-directory-files dir nil -1)))
  224.                                     (LM:getfiles:sort
  225.                                         (if (member ext '(("") ("*")))
  226.                                             (vl-directory-files dir nil 1)
  227.                                             (vl-remove-if-not
  228.                                                 (function
  229.                                                     (lambda ( x / e )
  230.                                                         (and
  231.                                                             (setq e (vl-filename-extension x))
  232.                                                             (setq e (strcase (substr e 2)))
  233.                                                             (vl-some '(lambda ( w ) (wcmatch e w)) ext)
  234.                                                         )
  235.                                                     )
  236.                                                 )
  237.                                                 (vl-directory-files dir nil 1)
  238.                                             )
  239.                                         )
  240.                                     )
  241.                                 )
  242.                             )
  243.                             dirdata
  244.                         )
  245.                     )
  246.                 )
  247.             )
  248.         )
  249.     )
  250. )

  251. (defun LM:getfiles:checkredirect ( dir / itm pos )
  252.     (cond
  253.         (   (vl-directory-files dir) dir)
  254.         (   (and
  255.                 (=  (strcase (getenv "UserProfile"))
  256.                     (strcase (substr dir 1 (setq pos (vl-string-position 92 dir nil t))))
  257.                 )
  258.                 (setq itm
  259.                     (cdr
  260.                         (assoc (substr (strcase dir t) (+ pos 2))
  261.                            '(
  262.                                 ("my documents" . "Documents")
  263.                                 ("my pictures"  . "Pictures")
  264.                                 ("my videos"    . "Videos")
  265.                                 ("my music"     . "Music")
  266.                             )
  267.                         )
  268.                     )
  269.                 )
  270.                 (vl-file-directory-p (setq itm (strcat (substr dir 1 pos) "\\" itm)))
  271.             )
  272.             itm
  273.         )
  274.         (   dir   )
  275.     )
  276. )

  277. (defun LM:getfiles:sort ( lst )
  278.     (apply 'append
  279.         (mapcar 'LM:getfiles:sortlist
  280.             (vl-sort
  281.                 (LM:getfiles:groupbyfunction lst
  282.                     (lambda ( a b / x y )
  283.                         (and
  284.                             (setq x (vl-filename-extension a))
  285.                             (setq y (vl-filename-extension b))
  286.                             (= (strcase x) (strcase y))
  287.                         )
  288.                     )
  289.                 )
  290.                 (function
  291.                     (lambda ( a b / x y )
  292.                         (and
  293.                             (setq x (vl-filename-extension (car a)))
  294.                             (setq y (vl-filename-extension (car b)))
  295.                             (< (strcase x) (strcase y))
  296.                         )
  297.                     )
  298.                 )
  299.             )
  300.         )
  301.     )
  302. )

  303. (defun LM:getfiles:sortlist ( lst )
  304.     (mapcar (function (lambda ( n ) (nth n lst)))
  305.         (vl-sort-i (mapcar 'LM:getfiles:splitstring lst)
  306.             (function
  307.                 (lambda ( a b / x y )
  308.                     (while
  309.                         (and
  310.                             (setq x (car a))
  311.                             (setq y (car b))
  312.                             (= x y)
  313.                         )
  314.                         (setq a (cdr a)
  315.                               b (cdr b)
  316.                         )
  317.                     )
  318.                     (cond
  319.                         (   (null x) b)
  320.                         (   (null y) nil)
  321.                         (   (and (numberp x) (numberp y)) (< x y))
  322.                         (   (numberp x))
  323.                         (   (numberp y) nil)
  324.                         (   (< x y))
  325.                     )
  326.                 )
  327.             )
  328.         )
  329.     )
  330. )

  331. (defun LM:getfiles:groupbyfunction ( lst fun / tmp1 tmp2 x1 )
  332.     (if (setq x1 (car lst))
  333.         (progn
  334.             (foreach x2 (cdr lst)
  335.                 (if (fun x1 x2)
  336.                     (setq tmp1 (cons x2 tmp1))
  337.                     (setq tmp2 (cons x2 tmp2))
  338.                 )
  339.             )
  340.             (cons (cons x1 (reverse tmp1)) (LM:getfiles:groupbyfunction (reverse tmp2) fun))
  341.         )
  342.     )
  343. )

  344. (defun LM:getfiles:splitstring ( str )
  345.     (
  346.         (lambda ( l )
  347.             (read
  348.                 (strcat "("
  349.                     (vl-list->string
  350.                         (apply 'append
  351.                             (mapcar
  352.                                 (function
  353.                                     (lambda ( a b c )
  354.                                         (cond
  355.                                             (   (member b '(45 46 92))
  356.                                                 (list 32)
  357.                                             )
  358.                                             (   (< 47 b 58)
  359.                                                 (list b)
  360.                                             )
  361.                                             (   (list 32 34 b 34 32))
  362.                                         )
  363.                                     )
  364.                                 )
  365.                                 (cons nil l) l (append (cdr l) '(( )))
  366.                             )
  367.                         )
  368.                     )
  369.                     ")"
  370.                 )
  371.             )
  372.         )
  373.         (vl-string->list (strcase str))
  374.     )
  375. )

  376. (defun LM:getfiles:browseforfolder ( msg dir flg / err fld pth shl slf )
  377.     (setq err
  378.         (vl-catch-all-apply
  379.             (function
  380.                 (lambda ( / app hwd )
  381.                     (if (setq app (vlax-get-acad-object)
  382.                               shl (vla-getinterfaceobject app "shell.application")
  383.                               hwd (vl-catch-all-apply 'vla-get-hwnd (list app))
  384.                               fld (vlax-invoke-method shl 'browseforfolder (if (vl-catch-all-error-p hwd) 0 hwd) msg flg dir)
  385.                         )
  386.                         (setq slf (vlax-get-property fld 'self)
  387.                               pth (LM:getfiles:fixdir (vlax-get-property slf 'path))
  388.                         )
  389.                     )
  390.                 )
  391.             )
  392.         )
  393.     )
  394.     (if slf (vlax-release-object slf))
  395.     (if fld (vlax-release-object fld))
  396.     (if shl (vlax-release-object shl))
  397.     (if (vl-catch-all-error-p err)
  398.         (prompt (vl-catch-all-error-message err))
  399.         pth
  400.     )
  401. )

  402. (defun LM:getfiles:full->relative ( dir path / p q )
  403.     (setq dir (vl-string-right-trim "\\" dir))
  404.     (cond
  405.         (   (and
  406.                 (setq p (vl-string-position 58  dir))
  407.                 (setq q (vl-string-position 58 path))
  408.                 (/= (strcase (substr dir 1 p)) (strcase (substr path 1 q)))
  409.             )
  410.             path
  411.         )
  412.         (   (and
  413.                 (setq p (vl-string-position 92  dir))
  414.                 (setq q (vl-string-position 92 path))
  415.                 (= (strcase (substr dir 1 p)) (strcase (substr path 1 q)))
  416.             )
  417.             (LM:getfiles:full->relative (substr dir (+ 2 p)) (substr path (+ 2 q)))
  418.         )
  419.         (   (and
  420.                 (setq q (vl-string-position 92 path))
  421.                 (= (strcase dir) (strcase (substr path 1 q)))
  422.             )
  423.             (strcat ".\\" (substr path (+ 2 q)))
  424.         )
  425.         (   (= "" dir)
  426.             path
  427.         )
  428.         (   (setq p (vl-string-position 92 dir))
  429.             (LM:getfiles:full->relative (substr dir (+ 2 p)) (strcat "..\\" path))
  430.         )
  431.         (   (LM:getfiles:full->relative "" (strcat "..\\" path)))
  432.     )
  433. )

  434. (defun LM:getfiles:str->lst ( str del / pos )
  435.     (if (setq pos (vl-string-search del str))
  436.         (cons (substr str 1 pos) (LM:getfiles:str->lst (substr str (+ pos 1 (strlen del))) del))
  437.         (list str)
  438.     )
  439. )

  440. (defun LM:getfiles:updatefilelist ( dir ext lst )
  441.     (LM:getfiles:listbox "box1" (LM:getfiles:listfiles dir ext lst))
  442. )

  443. (defun LM:getfiles:updateselected ( dir lst )
  444.     (LM:getfiles:listbox "box2" (mapcar '(lambda ( x ) (LM:getfiles:full->relative dir x)) lst))
  445.     lst
  446. )

  447. (defun LM:getfiles:updir ( dir )
  448.     (substr dir 1 (vl-string-position 92 dir nil t))
  449. )

  450. (defun LM:getfiles:fixdir ( dir )
  451.     (vl-string-right-trim "\\" (vl-string-translate "/" "\\" dir))
  452. )

  453. (defun LM:getfiles:removeitems ( itm lst / idx )
  454.     (setq idx -1)
  455.     (vl-remove-if '(lambda ( x ) (member (setq idx (1+ idx)) itm)) lst)
  456. )

  457. (princ)


  458. (defun yxpj ( tiflist / tifffile tifffilename lujing f1 fb1 xs txkd sdj1 sfb1 basept y1 y x1 x line1 i j)
  459.     (vl-load-com)

  460.     (setq i 0);初始化循环变量
  461.     (setq j 0)
  462.     (repeat (length tiflist)
  463.         (setq tifffile (nth i tiflist))
  464.         
  465.         (setq tifffilename(strcat (vl-filename-base tifffile) ".tfw"))
  466.         (setq lujing(strcat (vl-filename-directory tifffile) "\\" tifffilename));生成影像图和TFW文件路径
  467.         
  468.         (setq f1 (open lujing "r"))
  469.         (setq line1 (read-line f1));读取tfw文件
  470.         (setq fb1 (substr line1 1 12))

  471.         (while(= j 0)
  472.             (setq txkd 1)
  473.             (prompt "\n 输入图像宽度的像素尺寸:")
  474.             (setq xs (getreal));用户输入数据
  475.             (setq sdj1 (* (distof fb1 2) xs));计算图像宽度的实地距离
  476.             (setq sfb1 (/ sdj1 txkd));计算缩放比例
  477.             (prompt "\n 缩放比例为:")
  478.             (princ sfb1)
  479.             (setq j 1)
  480.         );/while

  481.         (setq y1 (substr line1 50 17));读取x坐标
  482.         (setq x1 (substr line1 67));读取y坐标
  483.         
  484.         (setq x (distof x1 2));将x,y坐标转换为实数
  485.         (setq y (distof y1 2))
  486.         
  487.         (setq basept (list y x));得到左下角实地坐标
  488.         
  489.         (close f1);关闭tfw文件

  490.         (vla-AddRaster(vla-get-modelspace(vla-get-activedocument(vlax-get-acad-object))) tifffile (vlax-3d-point basept) sfb1 0);插入图像
  491.         (terpri)
  492.         (command "zoom" "e");缩放显示
  493.         
  494.         (setq i (+ i 1));循环变量++
  495.     );/repeat
  496.         
  497.     (prin1)
  498.    
  499. )



评分

参与人数 1D豆 +10 收起 理由
Lisphk + 10 很给力!经验;技术要点;资料分享奖!

查看全部评分

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

已领礼包: 19个

财富等级: 恭喜发财

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

使用道具 举报

 楼主| 发表于 2018-3-22 14:25:51 | 显示全部楼层
  1.          使用方法:
  2. (AddTif "" "路径" "文件格式")
  3.            示例:
  4. (AddTif "" "D:\" "TIF")
复制代码
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2018-3-22 14:27:03 | 显示全部楼层

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

使用道具 举报

已领礼包: 812个

财富等级: 财运亨通

发表于 2018-3-29 08:26:54 | 显示全部楼层
感谢分享,,,,

点评

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

使用道具 举报

发表于 2018-3-29 08:30:42 | 显示全部楼层

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

使用道具 举报

已领礼包: 20个

财富等级: 恭喜发财

发表于 2018-3-31 19:49:29 来自手机 | 显示全部楼层
输入像素尺寸以后就报错了
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2018-4-2 09:30:36 | 显示全部楼层

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

使用道具 举报

已领礼包: 1个

财富等级: 恭喜发财

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

使用道具 举报

已领礼包: 1个

财富等级: 恭喜发财

发表于 2018-5-11 09:28:33 | 显示全部楼层

还是做成命令用起来比较方便

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

使用道具 举报

已领礼包: 6056个

财富等级: 富甲天下

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

使用道具 举报

已领礼包: 6468个

财富等级: 富甲天下

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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-19 21:11 , Processed in 0.404183 second(s), 50 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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