The Components element is used to specify the components that make up one version of the plug-in.
More than one Components elements can be used to identify the components for a plug-in; each Components element can identify one or more components. Platform and product information for a Components element is defined by the RuntimeRequirements element.
Along with the RuntimeRequirements element, the Components element might contain one or more ComponentEntry elements. The ComponentEntry element is used to define the individual files that need to be loaded by AutoCAD when the plug-in is ran. Each ComponentEntry element can contain a RuntimeRequirements element to identify which platform and product the component is associated with.
The following outlines the basic relationship of the Components, ComponentEntry, and RuntimeRequirements elements.
<Components>
<RuntimeRequirements ... />
<ComponentEntry ... >
<RuntimeRequirements ... />
</ComponentEntry>
<ComponentEntry ... >
<RuntimeRequirements ... />
</ComponentEntry>
</Components>
ComponentEntry Element
The ComponentEntry element is required and is used to specify details about each individual component in the Components element.
You can specify as many ComponentEntry elements as needed. Component types can be one of the following file formats:
- AutoLISP (LSP)
- AutoLISP Fastload (FAS)
- Visual LISP (VLX)
- Managed or Mixed Mode .NET Assembly (DLL)
- ObjectARX (ARX)
- ObjectDBX (DBX)
- Partial Customization (CUIx)
- Tool Palette (ATC)
A ComponentEntry element may contain a Commands element if the LoadReasons attribute is set to LoadOnCommandInvocation.
A ComponentEntry element can have any of the following attributes attached to it:
Commands Element
The Commands element is optional unless the LoadOnCommandInvocation parameter is enabled for the LoadReasons attribute. Used to specify which commands to register for LoadOnCommandInvocation.
You can specify more than one Command element as needed.
A Commands element can have the following attribute attached to it:
Command Element
Specifies the global and local names for each command.
A Command element can have any of the following attributes attached to it: