v7.5
Creates an instance of a filter wizard you can use to generate self-installing Filter plug-ins. The resulting wizard is a CustomProperty nested under the SDK wizard model which itself resides under the scene root.
oReturn = CreateFilterWizard( [DestinationDir] ); |
Newly created filter wizard as a CustomProperty object.
Parameter | Type | Description |
---|---|---|
DestinationDir | String |
The destination folder for the plug-in to generate. Default Value: If no destination folder is specified, the wizard property will be created in the user path. |
/* This example demonstrates how to create a filter wizard using the CreateFilterWizard command and then generate a very simple custom filter using the new wizard. */ var filterwiz = CreateFilterWizard(); filterwiz.PluginName = "XYZFilter"; filterwiz.FileName = "XYZFilterPlugin"; filterwiz.ScriptLanguage = "JScript"; filterwiz.FilterName = "XYZFilter"; filterwiz.FilterType = siFilterProperty; // Generates the XYZFilter implementation and plug-in GenerateFilterPlugin(filterwiz); var f = Application.Filters("XYZFilter"); Application.LogMessage(f.Name); // Expected results: // INFO : XYZFilter |