程序組織,建立名為*.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自動加載。
