程序组织,建立名为*.bundle的文件夹,创建Contents子文件夹,并将dll,ico等文件放进Contents中,在*.bundle中创建PackageContents.xml文件,内容如下:
<?xml version="1.0" encoding="utf-8" ?>
<ApplicationPackage SchemaVersion="1.0" AppVersion="1.0"
ProductCode="[{07367224-B708-45CE-9AA6-33FF6058532F}]"
Name="EAutoCADTools"
Icon="./Contents/app.ico"
Helpfile=""
> <CompanyDetails
Name=""
Email=""
/> <Components>
<ComponentEntry
ModuleName="./Contents/EAutoCADTools.dll"
LoadOnAutoCADStartup="true">
<Commands>
<Command Local="HelloEACad" Global="HelloEACad" StartupCommand="True"/>
</Commands>
</ComponentEntry>
</Components>
</ApplicationPackage>
安装,将*.bundle文件夹拷贝到C:\Program Files\Autodesk\ApplicationPlugins\即可随CAD自动加载。