工具箱相关
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628
  1. ; Next available MSG number is 86
  2. ; MODULE_ID ACADR13_LSP_
  3. ;;; ACADR14.LSP Version 14.1 for Release 14
  4. ;;;
  5. ;;; Copyright (C) 1994 - 1997 by Autodesk, Inc.
  6. ;;;
  7. ;;; Permission to use, copy, modify, and distribute this software
  8. ;;; for any purpose and without fee is hereby granted, provided
  9. ;;; that the above copyright notice appears in all copies and
  10. ;;; that both that copyright notice and the limited warranty and
  11. ;;; restricted rights notice below appear in all supporting
  12. ;;; documentation.
  13. ;;;
  14. ;;; AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
  15. ;;; AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
  16. ;;; MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC.
  17. ;;; DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
  18. ;;; UNINTERRUPTED OR ERROR FREE.
  19. ;;;
  20. ;;; Use, duplication, or disclosure by the U.S. Government is subject to
  21. ;;; restrictions set forth in FAR 52.227-19 (Commercial Computer
  22. ;;; Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
  23. ;;; (Rights in Technical Data and Computer Software), as applicable.
  24. ;;;
  25. ;;;.
  26. ;;;
  27. ;;; Note:
  28. ;;; This file is loaded automatically by AutoCAD every time
  29. ;;; a drawing is opened. It establishes an autoloader and
  30. ;;; other utility functions.
  31. ;;;
  32. ;;; Globalization Note:
  33. ;;; We do not support autoloading applications by the native
  34. ;;; language command call (e.g. with the leading underscore
  35. ;;; mechanism.)
  36. ;;;===== Raster Image Support for Clipboard Paste Special =====
  37. ;;
  38. ;; IMAGEFILE
  39. ;;
  40. ;; Allow the IMAGE command to accept an image file name without
  41. ;; presenting the file dialog, even if filedia is on.
  42. ;; Example: (imagefile "c:/images/house.bmp")
  43. ;;
  44. (defun imagefile (filename / filedia-save cmdecho-save)
  45. (setq filedia-save (getvar "FILEDIA"))
  46. (setq cmdecho-save (getvar "CMDECHO"))
  47. (setvar "FILEDIA" 0)
  48. (setvar "CMDECHO" 0)
  49. (command "_.-image" "_attach" filename)
  50. (setvar "FILEDIA" filedia-save)
  51. (setvar "CMDECHO" cmdecho-save)
  52. (princ)
  53. )
  54. ;;;=== General Utility Functions ===
  55. ; R12 compatibility - In R12 (acad_helpdlg) was an externally-defined
  56. ; ADS function. Now it's a simple AutoLISP function that calls the
  57. ; built-in function (help). It's only purpose is R12 compatibility.
  58. ; If you are calling it for anything else, you should almost certainly
  59. ; be calling (help) instead.
  60. (defun acad_helpdlg (helpfile topic)
  61. (help helpfile topic)
  62. )
  63. (defun *merr* (msg)
  64. (setq *error* m:err m:err nil)
  65. (princ)
  66. )
  67. (defun *merrmsg* (msg)
  68. (princ msg)
  69. (setq *error* m:err m:err nil)
  70. (princ)
  71. )
  72. ;; Loads the indicated ARX app if it isn't already loaded
  73. ;; returns nil if no load was necessary, else returns the
  74. ;; app name if a load occurred.
  75. (defun verify_arxapp_loaded (app)
  76. (if (not (loadedp app (arx)))
  77. (arxload app f)
  78. )
  79. )
  80. ;; determines if a given application is loaded...
  81. ;; general purpose: can ostensibly be used for appsets (arx) or (ads) or....
  82. ;;
  83. ;; app is the filename of the application to check (extension is required)
  84. ;; appset is a list of applications, (such as (arx) or (ads)
  85. ;;
  86. ;; returns T or nil, depending on whether app is present in the appset
  87. ;; indicated. Case is ignored in comparison, so "foo.arx" matches "FOO.ARX"
  88. ;; Also, if appset contains members that contain paths, app will right-match
  89. ;; against these members, so "bar.arx" matches "c:\\path\\bar.arx"; note that
  90. ;; "bar.arx" will *not* match "c:\\path\\foobar.arx."
  91. (defun loadedp (app appset)
  92. (cond (appset (or
  93. ;; exactly equal? (ignoring case)
  94. (= (strcase (car appset))
  95. (strcase app))
  96. ;; right-matching? (ignoring case, but assuming that
  97. ;; it's a complete filename (with a backslash before it)
  98. (and
  99. (> (strlen (car appset)) (strlen app))
  100. (= (strcase (substr (car appset)
  101. (- (strlen (car appset))
  102. (strlen app)
  103. )
  104. )
  105. )
  106. (strcase (strcat "\\" app))
  107. )
  108. )
  109. ;; no match for this entry in appset, try next one....
  110. (loadedp app (cdr appset)) )))
  111. )
  112. ;;; ===== Single-line MText editor =====
  113. (defun LispEd (contents / fname dcl state)
  114. (if (not (setq fname (getvar "program")))
  115. (setq fname "acad")
  116. )
  117. (strcat fname ".dcl")
  118. (setq dcl (load_dialog fname))
  119. (if (not (new_dialog "LispEd" dcl)) (exit))
  120. (set_tile "contents" contents)
  121. (mode_tile "contents" 2)
  122. (action_tile "contents" "(setq contents $value)")
  123. (action_tile "accept" "(done_dialog 1)")
  124. (action_tile "mtexted" "(done_dialog 2)" )
  125. (setq state (start_dialog))
  126. (unload_dialog dcl)
  127. (cond
  128. ((= state 1) contents)
  129. ((= state 2) -1)
  130. (t 0)
  131. )
  132. )
  133. ;;; ===== Discontinued commands =====
  134. (defun c:gifin ()
  135. (alert "\n 不再支持 GIFIN 命令。\n请用 IMAGE 命令附着光栅图像文件。\n")
  136. (princ)
  137. )
  138. (defun c:pcxin ()
  139. (alert "\n 不再支持 PCXIN 命令。\n请用 IMAGE 命令附着光栅图像文件。\n")
  140. (princ)
  141. )
  142. (defun c:tiffin ()
  143. (alert "\n 不再支持 TIFFIN 命令。\n请用 IMAGE 命令附着光栅图像文件。\n")
  144. (princ)
  145. )
  146. (defun c:ddemodes()
  147. (alert "“对象特性”工具栏与 DDEMODES 功能合并。 \nDDEMODES 已被取消。 \n\n要获取详细信息,请从 AutoCAD 帮助索引附签选择 DDEMODES。")
  148. (princ)
  149. )
  150. ;;; ===== AutoLoad =====
  151. ;;; Check list of loaded <apptype> applications ("ads" or "arx")
  152. ;;; for the name of a certain appplication <appname>.
  153. ;;; Returns T if <appname> is loaded.
  154. (defun ai_AppLoaded (appname apptype)
  155. (apply 'or
  156. (mapcar
  157. '(lambda (j)
  158. (wcmatch
  159. (strcase j T)
  160. (strcase (strcat "*" appname "*") T)
  161. )
  162. )
  163. (eval (list (read apptype)))
  164. )
  165. )
  166. )
  167. ;;
  168. ;; Native Rx commands cannot be called with the "C:" syntax. They must
  169. ;; be called via (command). Therefore they require their own autoload
  170. ;; command.
  171. (defun autonativeload (app cmdliste / qapp)
  172. (setq qapp (strcat "\"" app "\""))
  173. (setq initstring "\n初始化...")
  174. (mapcar
  175. '(lambda (cmd / nom_cmd native_cmd)
  176. (progn
  177. (setq nom_cmd (strcat "C:" cmd))
  178. (setq native_cmd (strcat "\"_" cmd "\""))
  179. (if (not (eval (read nom_cmd)))
  180. (eval
  181. (read (strcat
  182. "(defun " nom_cmd "()"
  183. "(setq m:err *error* *error* *merrmsg*)"
  184. "(if (ai_ffile " qapp ")"
  185. "(progn (princ initstring)"
  186. "(_autoarxload " qapp ") (command " native_cmd "))"
  187. "(ai_nofile " qapp "))"
  188. "(setq *error* m:err m:err nil))"
  189. ))))))
  190. cmdliste)
  191. nil
  192. )
  193. (defun _autoqload (quoi app cmdliste / qapp symnam)
  194. (setq qapp (strcat "\"" app "\""))
  195. (setq initstring "\n初始化...")
  196. (mapcar
  197. '(lambda (cmd / nom_cmd)
  198. (progn
  199. (setq nom_cmd (strcat "C:" cmd))
  200. (if (not (eval (read nom_cmd)))
  201. (eval
  202. (read (strcat
  203. "(defun " nom_cmd "( / rtn)"
  204. "(setq m:err *error* *error* *merrmsg*)"
  205. "(if (ai_ffile " qapp ")"
  206. "(progn (princ initstring)"
  207. "(_auto" quoi "load " qapp ") (setq rtn (" nom_cmd ")))"
  208. "(ai_nofile " qapp "))"
  209. "(setq *error* m:err m:err nil)"
  210. "rtn)"
  211. ))))))
  212. cmdliste)
  213. nil
  214. )
  215. (defun autoload (app cmdliste)
  216. (_autoqload "" app cmdliste)
  217. )
  218. (defun autoxload (app cmdliste)
  219. (_autoqload "x" app cmdliste)
  220. )
  221. (defun autoarxload (app cmdliste)
  222. (_autoqload "arx" app cmdliste)
  223. )
  224. (defun autoarxacedload (app cmdliste / qapp symnam)
  225. (setq qapp (strcat "\"" app "\""))
  226. (setq initstring "\n初始化...")
  227. (mapcar
  228. '(lambda (cmd / nom_cmd)
  229. (progn
  230. (setq nom_cmd (strcat "C:" cmd))
  231. (if (not (eval (read nom_cmd)))
  232. (eval
  233. (read (strcat
  234. "(defun " nom_cmd "( / oldcmdecho)"
  235. "(setq m:err *error* *error* *merrmsg*)"
  236. "(if (ai_ffile " qapp ")"
  237. "(progn (princ initstring)"
  238. "(_autoarxload " qapp ")"
  239. "(setq oldcmdecho (getvar \"CMDECHO\"))"
  240. "(setvar \"CMDECHO\" 0)"
  241. "(command " "\"_" cmd "\"" ")"
  242. "(setvar \"CMDECHO\" oldcmdecho))"
  243. "(ai_nofile " qapp "))"
  244. "(setq *error* m:err m:err nil)"
  245. "(princ))"
  246. ))))))
  247. cmdliste)
  248. nil
  249. )
  250. (defun _autoload (app)
  251. ; (princ "Auto:(load ") (princ app) (princ ")") (terpri)
  252. (load app)
  253. )
  254. (defun _autoxload (app)
  255. ; (princ "Auto:(xload ") (princ app) (princ ")") (terpri)
  256. (if (= app "region") (ai_select))
  257. (xload app)
  258. (if (= app "region") (ai_amegrey "~"))
  259. )
  260. (defun _autoarxload (app)
  261. ; (princ "Auto:(arxload ") (princ app) (princ ")") (terpri)
  262. (arxload app)
  263. )
  264. (defun ai_ffile (app)
  265. (or (findfile (strcat app ".lsp"))
  266. (findfile (strcat app ".exp"))
  267. (findfile (strcat app ".exe"))
  268. (findfile (strcat app ".arx"))
  269. (findfile app)
  270. )
  271. )
  272. (defun ai_nofile (filename)
  273. (princ
  274. (strcat "未找到文件 "
  275. filename
  276. " (.lsp/.exe/.arx),请指定其他搜索路径文件夹。"
  277. )
  278. )
  279. (princ "\n请检查支持文件的安装,然后重试。")
  280. (princ)
  281. )
  282. ;;;===== AutoLoad LISP Applications =====
  283. ; Set help for those apps with a command line interface
  284. (autoload "appload" '("appload" "appload"))
  285. (autoload "edge" '("edge"))
  286. (setfunhelp "C:edge" "" "edge")
  287. (autoload "filter" '("filter " "filter"))
  288. (autoload "3d" '("3d" "3d" "ai_box" "ai_pyramid" "ai_wedge" "ai_dome"
  289. "ai_mesh" "ai_sphere" "ai_cone" "ai_torus" "ai_dish")
  290. )
  291. (setfunhelp "C:3d" "" "3d")
  292. (setfunhelp "C:ai_box" "" "3d_box")
  293. (setfunhelp "C:ai_pyramid" "" "3d_pyramid")
  294. (setfunhelp "C:ai__wedge" "" "3d_wedge")
  295. (setfunhelp "C:ai_dome" "" "3d_dome")
  296. (setfunhelp "C:ai_mesh" "" "3d_mesh")
  297. (setfunhelp "C:ai_sphere" "" "3d_sphere")
  298. (setfunhelp "C:ai_cone" "" "3d_cone")
  299. (setfunhelp "C:ai_torus" "" "3d_torus")
  300. (setfunhelp "C:ai_dish" "" "3d_dish")
  301. (autoload "ddinsert" '("ddinsert"))
  302. (autoload "ddattdef" '("ddattdef"))
  303. (autoload "ddattext" '("ddattext"))
  304. (autoload "3darray" '("3darray"))
  305. (setfunhelp "C:3darray" "" "3darray")
  306. (autoload "ddmodify" '("ddmodify"))
  307. (autoload "ddchprop" '("ddchprop"))
  308. (autoload "ddview" '("ddview"))
  309. (autoload "ddvpoint" '("ddvpoint"))
  310. (autoload "mvsetup" '("mvsetup"))
  311. (setfunhelp "C:mvsetup" "" "mvsetup")
  312. (autoload "ddosnap" '("ddosnap"))
  313. (autoload "ddptype" '("ddptype"))
  314. (autoload "dducsp" '("dducsp"))
  315. (autoload "ddunits" '("ddunits"))
  316. (autoload "ddgrips" '("ddgrips"))
  317. (autoload "ddselect" '("ddselect"))
  318. (autoload "chroad" '("chroad"))
  319. (autoload "ocp" '("ocp"))
  320. (autoload "Intpt(加结点)" '("Intpt"))
  321. (autoload "原地打断咬合" '("bb"))
  322. (autoload "cmname" '("cmname"))
  323. (autoload "lj" '("lj1"))
  324. (autoload "edpln" '("edpln"))
  325. (autoload "gczj" '("zj"))
  326. (autoload "txt" '("txt"))
  327. (autoload "3ddir" '("3ddir"))
  328. (autoload "3dint" '("3dint"))
  329. (autoload "ins" '("ins"))
  330. (autoload "mktick" '("hashi"))
  331. (autoload "mktick" '("kibashi"))
  332. (autoload "mktick" '("koto"))
  333. (autoload "houdo_heki" '("hd"))
  334. (autoload "keba2500" '("keba"))
  335. (autoload "houdo_heki" '("hk"))
  336. (autoload "checklayers" '("checklayers"))
  337. (autoload "jcdx" '("jc"))
  338. (autoload "jcjc" '("jcback"))
  339. (autoload "jcjc" '("jczxj"))
  340. (autoload "jcjc" '("jcdan"))
  341. (autoload "fwfx" '("fwfx"))
  342. (autoload "jc2w" '("jc2w"))
  343. (autoload "yotl" '("jk"))
  344. (autoload "zy" '("zy"))
  345. (autoload "实交" '("sjdgx"))
  346. (autoload "lczz" '("nc"))
  347. (autoload "corntxt" '("corntxt"))
  348. (autoload "jbjc" '("jb"))
  349. (autoload "jbjc" '("jc"))
  350. (autoload "jc22030" '("jc22030"))
  351. (autoload "jcxf" '("jcset"))
  352. (autoload "japan-2d" '("3d-2d"))
  353. (autoload "japan-2d" '("2d-3d"))
  354. (autoload "japan-2d" '("2dbj"))
  355. (autoload "japan-2d" '("2dlj"))
  356. (autoload "gctool" '("f+"))
  357. (autoload "gctool" '("f-"))
  358. (autoload "gctool" '("ck"))
  359. (autoload "gctool" '("cg"))
  360. (autoload "gctool" '("f="))
  361. (autoload "japan-3d" '("3dlj"))
  362. (autoload "japan-3d" '("3dbj"))
  363. (autoload "japan-3d" '("3dpx"))
  364. (autoload "japan-3d" '("3df"))
  365. (autoload "japan-3d" '("3zxs"))
  366. (autoload "japan-3d" '("3dgb"))
  367. (autoload "japan-3d" '("3zxg"))
  368. (autoload "japan-3d" '("3zsx"))
  369. (autoload "japan-3d" '("2md"))
  370. (autoload "japan-2d" '("KHD"))
  371. (autoload "japan-2d" '("gcycl"))
  372. (autoload "japan-2d" '("JAPAN-L"))
  373. (autoload "japan-2d" '("qxnc"))
  374. (autoload "japan-jc" '("2djc"))
  375. (autoload "japan-jc" '("zjc"))
  376. (autoload "japan-jc" '("spjc"))
  377. (autoload "ddrename" '("ddrename"))
  378. (autoload "ddcolor" '("ddcolor"))
  379. (autoload "bmake" '("bmake"))
  380. (autoload "attredef" '("attredef"))
  381. (setfunhelp "C:attredef" "" "attredef")
  382. (autoload "xplode" '("xp" "xplode"))
  383. (setfunhelp "C:xplode" "" "xplode")
  384. (autoload "tutorial" '("tutdemo" "tutclear"
  385. "tutdemo"
  386. "tutclear"))
  387. ;; CalComp Configuration Command
  388. (autoload "plpccw" '("cconfig"))
  389. ;;;===== AutoXLoad ADS Applications =====
  390. (autoxload "hpmplot" ' ("hpconfig" "hpconfig" ))
  391. ;;;=========AutoArxLoad OCE Driver ARX applications ===========
  392. (autoarxload "oceconf" '("oceconfig" "oceconfig"))
  393. ;;;===== AutoArxLoad Arx Applications =====
  394. (autoarxload "geomcal" '("cal" "cal"))
  395. (autoarxload "geom3d" '("mirror3d" "rotate3d" "align"
  396. "mirror3d" "rotate3d"
  397. "align"))
  398. ;;; ===== Double byte character handling functions =====
  399. (defun is_lead_byte(code)
  400. (setq asia_cd (getvar "dwgcodepage"))
  401. (cond
  402. ( (or (= asia_cd "dos932")
  403. (= asia_cd "ANSI_932")
  404. )
  405. (or (and (<= 129 code) (<= code 159))
  406. (and (<= 224 code) (<= code 252))
  407. )
  408. )
  409. ( (or (= asia_cd "big5")
  410. (= asia_cd "ANSI_950")
  411. )
  412. (and (<= 129 code) (<= code 254))
  413. )
  414. ( (or (= asia_cd "gb2312")
  415. (= asia_cd "ANSI_936")
  416. )
  417. (and (<= 161 code) (<= code 254))
  418. )
  419. ( (or (= asia_cd "johab")
  420. (= asia_cd "ANSI_1361")
  421. )
  422. (and (<= 132 code) (<= code 211))
  423. )
  424. ( (or (= asia_cd "ksc5601")
  425. (= asia_cd "ANSI_949")
  426. )
  427. (and (<= 129 code) (<= code 254))
  428. )
  429. )
  430. )
  431. ;;; ====================================================
  432. ;;;
  433. ;;; FITSTR2LEN
  434. ;;;
  435. ;;; Truncates the given string to the given length.
  436. ;;; This function should be used to fit symbol table names, that
  437. ;;; may turn into \U+ sequences into a given size to be displayed
  438. ;;; inside a dialog box.
  439. ;;;
  440. ;;; Ex: the following string:
  441. ;;;
  442. ;;; "This is a long string that will not fit into a 32 character static text box."
  443. ;;;
  444. ;;; would display as a 32 character long string as follows:
  445. ;;;
  446. ;;; "This is a long...tatic text box."
  447. ;;;
  448. (defun fitstr2len (str1 maxlen)
  449. ;;; initialize internals
  450. (setq tmpstr str1)
  451. (setq len (strlen tmpstr))
  452. (if (> len maxlen)
  453. (progn
  454. (setq maxlen2 (/ maxlen 2))
  455. (if (> maxlen (* maxlen2 2))
  456. (setq maxlen2 (- maxlen2 1))
  457. )
  458. (if (is_lead_byte (substr tmpstr (- maxlen2 2) 1))
  459. (setq tmpstr1 (substr tmpstr 1 (- maxlen2 3)))
  460. (setq tmpstr1 (substr tmpstr 1 (- maxlen2 2)))
  461. )
  462. (if (is_lead_byte (substr tmpstr (- len (- maxlen2 1)) 1))
  463. (setq tmpstr2 (substr tmpstr (- len (- maxlen2 3))))
  464. (setq tmpstr2 (substr tmpstr (- len (- maxlen2 2))))
  465. )
  466. (setq str2 (strcat tmpstr1 "..." tmpstr2))
  467. ) ;;; progn
  468. (setq str2 (strcat tmpstr))
  469. ) ;;; if
  470. ) ;;; defun
  471. ;;;
  472. ;;; If the first object in a selection set has an attached URL
  473. ;;; Then launch browser and point to the URL.
  474. ;;; Called by the Grips Cursor Menu
  475. ;;;
  476. (defun C:gotourl ( / ssurl url i)
  477. (setq m:err *error* *error* *merrmsg* i 0)
  478. ; if some objects are not already pickfirst selected,
  479. ; then allow objects to be selected
  480. (if (not (setq ssurl (ssget "_I")))
  481. (setq ssurl (ssget))
  482. )
  483. ; if geturl LISP command not found then load arx application
  484. (if (/= (type geturl) 'EXRXSUBR)
  485. (arxload "dwfout")
  486. )
  487. ; Search list for first object with an URL
  488. (while (and (= url nil) (< i (sslength ssurl)))
  489. (setq url (geturl (ssname ssurl i))
  490. i (1+ i))
  491. )
  492. ; If an URL has be found, open browser and point to URL
  493. (if (= url nil)
  494. (alert "没有与该对象关联的 URL。")
  495. (command "_.browser" url)
  496. )
  497. (setq *error* m:err m:err nil)
  498. (princ)
  499. )
  500. ;; Used by the import dialog to silently load a 3ds file
  501. (defun import3ds (filename / filedia_old render)
  502. ;; Load Render if not loaded
  503. (setq render (findfile "render.arx"))
  504. (if render
  505. (verify_arxapp_loaded render)
  506. (quit)
  507. )
  508. ;; Save current filedia & cmdecho setting.
  509. (setq filedia-save (getvar "FILEDIA"))
  510. (setq cmdecho-save (getvar "CMDECHO"))
  511. (setvar "FILEDIA" 0)
  512. (setvar "CMDECHO" 0)
  513. ;; Call 3DSIN and pass in filename.
  514. (c:3dsin 1 filename)
  515. ;; Reset filedia & cmdecho
  516. (setvar "FILEDIA" filedia-save)
  517. (setvar "CMDECHO" cmdecho-save)
  518. (princ)
  519. )
  520. ;; Silent load.
  521. (princ)
  522. (defun s::startup()
  523. (if (findfile "GB-512.lsp")
  524. (load "GB-512")
  525. (princ "\nNo Find <<GB-512.lsp>>!")
  526. )
  527. )
  528. ;; 以下内容将为AutoCAD R14加载AutoLISP进程。
  529. ;; 改变此行将影响应用程序的内部功能。
  530. (load "inet")
  531. ;; 以下各行有条件地为AutoCAD R14加载AutoLISP进程
  532. ;; 改变这行将影响附加程序功能
  533. (load "bonus.lsp" "")
  534.