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

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

问题描述

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

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


  • 启动套件-由GUI附加

  • 列表项%appdata%.... \support\zwcad2018.lsp (我使用ZWCAD,也许在Acad中,还有另一条路。很久以前,当我在Acad上工作时,它是acad。 lsp,但是那是Windows UAC功能之前的时间。)

  • *。mnl 在加载相应的* .mnu时加载(旧的方式

  • 按需加载: HKEY_CURRENT_USER\Software\ZWSOFT\ZWCAD\2018\zh- US\Applications\MyApplicationName

  • zwcaddoc.lsp (如果我的应用程序的路径在选项中) / File / Support文件搜索路径

  • 使用 / ld 开关的应用程序快捷方式

  • acad.rx

  • startup suite - attached by GUI
  • List item %appdata%....\support\zwcad2018.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_USER\Software\ZWSOFT\ZWCAD\2018\en-US\Applications\MyApplicationName
  • 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)是我在CADTutor论坛上围绕< a href = http://www.cadtutor.net/forum/showthread.php?70760&p=484221&viewfull=1#post484221 rel = nofollow noreferrer> 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.

此文件加载了各种ObjectARX应用程序当AutoCAD启动时。

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会话中打开的每个图形中。

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.

无论在何处打开图形,始终都会在每个图形中加载acaddoc.lsp文件,该文件对于加载AutoLISP函数库非常有用。设置 ACADLSPASDOC 系统变量。

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

由于AutoCAD会在支持路径之前搜索工作目录并加载找到第一个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.

Enterprise 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管理员可以通过修改Main 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.

驻留在Startup Suite中的程序文​​件现在已经按照在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.

启动AutoCAD应用程序时,可以使用命令行开关 / b 来运行脚本。在图形初始化完成后,将执行以这种方式调用的所有Script操作。

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天全站免登陆