Adding Scripts Before or After Generation and Reverse Engineering

You can specify scripts to be used before or after database generation or reverse engineering.

  1. Open the Profile folder. If there is no entry for Model, then right-click the Profile folder and select Add Metaclasses.
  2. On the PdPDM sub-tab, select Model and then click OK to add the Model item to the Profile folder.
  3. Right-click the Model item, and select New > Event Handler (see Event Handlers (Profile)).
  4. Select one or more of the following event handlers depending on where you want to add a script:
    • BeforeDatabaseGenerate

    • AfterDatabaseGenerate

    • BeforeDatabaseReverseEngineer

    • AfterDatabaseReverseEngineer

  5. Click OK to add the selected event handlers to the Model item.
  6. Select each of the event handlers in turn, click its Event Handler Script tab, and enter the desired script.
  7. Click OK to confirm your changes and return to the model.