Creating a Method

You can create a method in a profile.

  1. Right-click a metaclass, stereotype or criterion and select New > Method.
  2. Enter a name and a comment to describe the method.
  3. Click the Method Script tab, and enter the VBscript. If appropriate, you can reuse functions on the Global Script tab.

    By default, this tab contains the following skeleton script:

    Sub %Method%(obj)
      ' Implement your method on <obj> here
    End Sub

    %Method% is a concatenation of the name of the resource file, the metaclass (and any stereotype or criterion), and the name of the method itself defined in the General tab. If any of these names contains an empty space, it is replaced by an underscore.



  4. Click Apply.