Defining a Visual Basic Preprocessing Symbol

You can define Visual Basic preprocessing symbols and values in the preprocessing tab of the reverse engineering dialog box.

Symbol names are not case sensitive but they must be unique. Make sure you do not type reserved words like true, false, if, do and so on. You must always assign a value to a symbol, this value can be a string (no " " required), a numeric value, a boolean value or Nothing.

The list of symbols is saved in the model and will be reused when you synchronize your model with existing code using the Synchronize with Generated Files command.

For more information on the Synchronize with Generated Files command see Synchronizing a Model with Generated Files.

You can use the Set As Default button to save the list of symbols in the registry.

  1. Select Language > Reverse engineering Visual Basic.

    The Reverse Engineering Visual Basic dialog box is displayed.

  2. Click the Preprocessing tab, then click the Add a row tool to insert a line in the list.
  3. Type symbol names in the Name column.
  4. Type symbol value in the Value column.

    The Defined check box is automatically selected for each symbol to indicate that the symbol will be taken into account during preprocessing.



  5. Click Apply.

PowerDesigner does not support the default namespace in a Visual Studio project. If you define default namespaces in your projects, you should avoid reverse engineering the entire solution. It is better to reverse engineer each project separately.