Addon.SubDirectory

説明

アドオンのインストール時に使用するサブディレクトリ(Add-onディレクトリ)をStringとして設定したり、戻したりします。たとえば、"MyAddon"に設定すると、アドオンは Addons¥MyAddon フォルダにインストールされます。

SubDirectory は省略できます。サブディレクトリを指定しない場合、アドオンは Addons ディレクトリにインストールされます。

VBScript の例

'
' This example demonstrates how to set up an Add-on directory 
'
' Create a toolbar to put in the add-on package
CreateToolbar "MyToolbarAddonTest"
' Create the add-on package object
set oAddOn = Application.CreateAddon
' Set the installation folder for the add-on 
' (the add-on will be installed in the Addons\CompanyXYZ folder)
oAddOn.SubDirectory = "CompanyXYZ"
' Add the toolbar to the package 
oAddOn.AddItem siToolbarAddonItemType, "MyToolbarAddonTest"
' Save the package in the Addons directory
oAddOn.Save XSIUtils.BuildPath( InstallationPath( siUserPath ), "Addons", "myAddOn.xsiaddon" )