2012

Table Of Contents
of the plug-in. By deploying custom applications as a BUNDLE, it makes it
easier to target multiple operating systems and product releases since the
parameters of your plug-in are defined in the XML file of the package. A
BUNDLE can be used as a replacement to creating complex installer scripts
when deploying a plug-in.
The plug-in defined by each package is loaded into AutoCAD for Mac by
placing it in the /Applications/Autodesk/ApplicationAddins folder on your local
drive. When AutoCAD for Mac starts, the ApplicationAddins folder is checked
for plug-in applications. The packages found are automatically registered and
loaded based on the metadata in the XML file of each package.
Install Plug-in Packages
A package can be deployed using an installer or manually copying the files
and folder structure to the ApplicationAddins folder.
Loading Plug-ins
By default, plug-ins are automatically registered with AutoCAD and when a
new plug-in is installed during the current session. The load behavior for
plug-ins is controlled with the APPAUTOLOAD system variable. When
APPAUTOLOAD is set to 0, no plug-ins are loaded unless the APPAUTOLOADER
command is used.
Uninstall Plug-in Packages
A package can be uninstalled by removing the appropriate folder with a .bundle
extension from the ApplicationAddins folder.
PackageContents.xml Format
The PackageContents.xml file contains information about the application
package, including information about the developer that authored it.
The information contained in the file can be used to specify which
AutoCAD-based products and releases the plug-in can be loaded into, their
supported Operating System, and how the application should be loaded, such
as load on startup or when a command is invoked.
The following elements are used to define and describe the plug-in:
ApplicationPackage (page 91)
CompanyDetails (page 93)
88 | Chapter 7 Introduction to Programming Interfaces