Extensions can be used to create new generation targets.
This type of generation is called extended generation, and is available from the
command.If you have several extensions designed for extended generation, these will appear in the Targets page of the extended generation dialog box.
Create a menu (see Menus (Profile)) under the Model metaclass in the Profile category of the extension, and select the Tools menu in the Location list
Create a method (see Methods (Profile)) to invoke extended generation as follows:
Sub %Method%(obj) Dim selection ' as ObjectSelection ' Create a new selection set selection = obj.CreateSelection ' Add object of the active selection in the created selection selection.AddActiveSelectionObjects ' Generate scripts for specific target InteractiveMode = im_Dialog obj.GenerateFiles "", selection, "specific target" End Sub
The new command is displayed in the Tools menu.
The Targets tab does not display because the underlying method already specifies a generation target.