此範例反映使用資料夾組織元件的外掛程式套件外觀。
大型應用程式建議使用已經整理的資料夾結構,以加快載入的速度。下列為包含多個 LSP 檔案和資源檔的外掛程式範例。此範例中的外掛程式名為 OfficeSymbols,其資料夾結構外觀如下:
OfficeSymbols.bundle
|- PackageContents.xml
|- Contents
|- OfficeSymbolsMain.lsp
|- OfficeSymbolsUtilities.lsp
|- Resources
|- OfficeSymbols.dwg
|- OfficeSymbols.cuix
|- OfficeSymbols.ico
|- Help
|- OfficeSymbols.htm
<?xml version="1.0" encoding="utf-8" ?> <ApplicationPackage SchemaVersion="1.0" AppVersion="1.0" Author="ABC Indoor CAD, Inc." ProductCode="[Add Unique Plug-in GUID Here]" Name="Office Symbols (contains Full version)" Icon="./Contents/Resources/OfficeSymbols.ico" Helpfile="./Contents/Help/OfficeSymbols.htm" > <CompanyDetails Name="ABC Indoor CAD, Inc." Phone="1 (555)-415-1234" PhoneEsp="34 5554 151234" Url="www.abcindoorcad.com" UrlEsp="www.abcindoorcad.es" Email="support@abcindoorcad.com" /> <Components> <RuntimeRequirements SupportPath="./Contents/Support"/> <ComponentEntry AppName="MainLISP" ModuleName="./Contents/OfficeSymbolsMain.lsp" /> <ComponentEntry AppName="UtilitiesLISP" ModuleName="./Contents/OfficeSymbolsUtilities.lsp" /> <ComponentEntry ModuleName="./Contents/Resources/OfficeSymbols.cuix" /> </Components> </ApplicationPackage>