加载 AutoCAD 插件的顺序是什么? [英] What is the order of load AutoCAD plugins?

查看:49
本文介绍了加载 AutoCAD 插件的顺序是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有几种自动加载应用程序的方法 - AutoCAD 启动时的插件.我知道那些:

There are few ways of automatic load applications - plugins when AutoCAD starts. I know those:

  • 启动套件 - 通过 GUI 附加
  • List item %appdata%....supportzwcad2018.lsp (我用的是中望CAD,可能在Acad里,还有另外一条路.很久以前我做Acad的时候是acad.lsp,但那是在 Windows UAC 功能出现之前的时代).
  • *.mnl 在加载相应的 *.mnu 时加载(旧方式,但 ZWCAD 可以)Acad 怎么样?
  • 按需加载:HKEY_CURRENT_USERSoftwareWSOFTWCAD2018en-USApplicationsMyApplicationName
  • zwcaddoc.lsp 如果我的应用程序的路径在 Options/File/Support File Search Path
  • 使用/ld开关的应用程序快捷方式
  • acad.rx
  • startup suite - attached by GUI
  • List item %appdata%....supportzwcad2018.lsp ( I use ZWCAD, maybe in Acad, there is another path. The long time ago when I worked on Acad it was acad.lsp, but that was times before Windows UAC feature).
  • *.mnl loaded while corresponding *.mnu is loaded ( old fashion way, but is ZWCAD possible) what about Acad?
  • On-demand loading: HKEY_CURRENT_USERSoftwareWSOFTWCAD2018en-USApplicationsMyApplicationName
  • zwcaddoc.lsp if the path to my application is in Options/File/Support File Search Path
  • application shortcut using /ld switch
  • acad.rx

加载应用程序的顺序是什么?如果这里没有列出其他方式,请告诉我.可能 ARX 或 .Net 应用程序也可能以另一种方式加载.

What is the order of ways to load applications? And if there are other ways not listed here please let me know. Probably ARX or .Net applications may be loaded also in another way.

推荐答案

以下对支持文件加载顺序(适用于 AutoCAD)的描述摘自我在围绕 ACADDOC.lsp 的危险.

The below description of support file load order (for AutoCAD) is an excerpt from my post on the CADTutor forum surrounding the Dangers of the ACADDOC.lsp.

此文件在 AutoCAD 启动时加载各种 ObjectARX 应用程序.

This file loads various ObjectARX applications when AutoCAD is started.

此文件在不自动加载此类文件的版本中加载 acad20##doc.lsp 文件.不应修改此文件.

This file loads the acad20##doc.lsp file in versions which do not load such file automatically. This file should not be modified.

此文件的加载取决于ACADLSPASDOC 系统变量的设置:

The loading of this file is dependent on the setting of the ACADLSPASDOC System Variable:

  • ACADLSPASDOC = 0(默认)

acad.lsp 加载到在 AutoCAD 会话中打开的第一个图形中,并且不会为每个随后打开的图形加载.

Loads acad.lsp into just the first drawing opened in an AutoCAD session, and will not load for each subsequently opened drawing.

ACADLSPASDOC = 1

acad.lsp 加载到每个打开的图形中.

Loads acad.lsp into every drawing opened.

此文件保留供用户自定义,旨在用于特定于应用程序的启动例程,因为 acad.lsp 文件中定义的所有函数和变量仅在第一个图形中可用.

This file is reserved for user customisation and is intended to be used for application-specific startup routines, as all functions and variables defined in an acad.lsp file are only available in the first drawing.

如果在所有图纸中都需要函数,而不是更改 ACADLSPASDOC 的值,函数 &程序应该从 acad.lsp 文件移动到 acaddoc.lsp 文件中.

If functions are required in all drawings, rather than altering the value of ACADLSPASDOC, functions & programs should be moved from the acad.lsp file into the acaddoc.lsp file.

每次打开图形时都会自动加载此文件,并加载autoload 函数定义和AutoCAD 所需的其他实用程序功能.不应修改此文件.

This file is automatically loaded every time a drawing is opened and loads the autoload function definiton and other utility functions required by AutoCAD. This file should not be modified.

如上所述,如果找到该文件,则会自动将其加载到在 AutoCAD 会话中打开的每个图形中.此文件可用于加载每次打开图形时可用的 AutoLISP 函数库.

As described above, if found, this file is automatically loaded into every drawing opened in the AutoCAD session. This file is useful for loading a library of AutoLISP functions to be available every time a drawing is opened.

无论ACADLSPASDOC 系统变量的设置如何,acaddoc.lsp 文件始终与每个图形一起加载.

The acaddoc.lsp file is always loaded with each drawing regardless of the settings of the ACADLSPASDOC System Variable.

由于 AutoCAD 将在 Support Paths 之前搜索工作目录并加载找到的第一个 acaddoc.lsp 文件,因此用户可以在每个图形目录中拥有不同的 acaddoc.lsp 文件,该文件将为某些类型的图形加载特定的 AutoLISP 例程或工作.

Since AutoCAD will search the working directory before the Support Paths and will load the first acaddoc.lsp file found, users can have a different acaddoc.lsp file in each drawing directory, which would load specific AutoLISP routines for certain types of drawings or jobs.

此文件将自动加载启用 VBA 的版本的 VBA 项目.

This file will automatically load VBA projects for versions in which VBA is enabled.

一个 CUIx 文件包含多个基于 XML 的文件和图像文件,每个文件和图像文件都包含可自定义的用户界面元素的数据.CUIx 文件替换了以前版本中用于定义菜单的 CUI、MNU、MNS 和 MNC 文件.

A CUIx file contains multiple XML based files and image files, each of which contains the data for a user interface element that can be customised. CUIx files replace the CUI, MNU, MNS, and MNC files that were used to define menus in previouse releases.

主 CUIx 文件定义了 AutoCAD 中的大部分界面元素.

The Main CUIx file defines the majority of interface elements in AutoCAD.

企业 CUIx 文件通常由 CAD 管理员控制并由许多用户访问,通常从共享网络位置访问.

The Enterprise CUIx file is typically controlled by a CAD manager and accessed by many users, usually from a shared network location.

该文件对用户是只读的,以防止文件中的数据被更改.CAD 管理员将通过修改主 CUIx 文件然后将该文件保存到共享网络位置来创建企业 CUIx 文件.

This file is read-only to users to prevent the data in the file from being changed. A CAD manager would create an enterprise CUIx file by modifying a Main CUIx file and then saving the file to a shared network location.

有关如何创建此文件的信息,请参见此处.

See here for information on how to create this file.

此文件加载 Express Tools 菜单组.

This file loads the Express Tools menugroups.

此处加载了 Express Tools 程序所需的各种 LISP 和菜单文件.

The various LISP and Menu files required by the Express Tools programs are loaded here.

驻留在启动套件中的程序文​​件现在按照它们在 AppLoad 对话框中出现的顺序加载.

Programs files residing in the Startup Suite are now loaded, in the order they appear in the AppLoad dialog.

众所周知,在某些版本的 AutoCAD 中,Startup Suite 是易变的,因此我建议使用 acaddoc.lsp 来加载绘图会话期间所需的功能和程序.

The Startup Suite is known to be temperamental in some versions of AutoCAD, so I would recommend using the acaddoc.lsp for loading functions and programs required during the drawing session.

此后初始化功能可用于在绘图编辑器中初始化绘图后执行操作.

This post-initialisation function can be utilised to perform operations after the drawing has initialised in the drawing editor.

由于 acad.lsp 和 acaddoc.lsp 文件是在绘图初始化过程的早期加载的,因此在运行时从这些文件发出的命令可能会失败,因为命令行可能未在绘图中初始化.

Since the acad.lsp and acaddoc.lsp files are loaded early in the drawing initialisation procedure, commands issued at run-time from these files may be unsuccessful as the command-line may not be initialised in the drawing.

命令行开关 /b 可用于在 AutoCAD 应用程序启动时运行脚本.以这种方式调用的任何脚本操作都将在绘图初始化完成后执行.

The command-line switch /b can be used to run a Script when the AutoCAD application is launched. Any Script operations called in this way will be executed after drawing initialisation has completed.

命令行开关可以在 AutoCAD 应用程序快捷方式图标的属性中设置,在目标编辑框中.

Command-line switches can be set from within the properties of the AutoCAD application shortcut icon, within the Target edit box.

有关命令行开关的更详细说明,请参阅此处.

For a more detailed description of command-line switches, see here.

这篇关于加载 AutoCAD 插件的顺序是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆