Checking Models

You can check the validity of your model at any time. We recommend that you check your model before generating code or another model from it. The Check model option is enabled by default in the Generate dialog box and, if an error is found, the generation is stopped.

  1. Press F4, select Tools > Check Model, or right-click the diagram background and select Check Model to open the Check Model Parameters dialog.

    The Options tab lists the types of objects to be checked, and the individual checks to be performed are displayed with symbols indicating their severity:



  2. [optional] Select or deselect types of objects to check, and expand object nodes to enable, disable, vary the severity of, and enable or disable automatic correction of individual checks with the following tools:

    Tool

    Description

    Select All – Click the arrow to select all checks, all error checks, or all warning checks.

    Deselect All - Click the arrow to deselect all checks, all error checks, or all warning checks.

    Error – Sets the selected check to error level. When errors are encountered, any model generation is stopped.

    Warning - Sets the selected check to error level. Warnings do not allow model generation to proceed.

    Automatic correction – [if available for the selected check] Enables automatic correction for the selected check and places a small red cross on the bottom-right corner of the check icon.

    Automatic corrections may have unexpected effects, and you might want to disable them in some cases. For example, in a PDM, if a column code length is longer than the length specified in the DBMS MaxColumnLen entry, then PowerDesigner will truncate the code, but may also change the code to avoid duplicating an existing code.

    Note:

    Right-click a check and select Help to display its documentation.

  3. [optional] Click the Selection tab, and select or deselect individual objects for checking. Sub-tabs are available for each type of object:


    Note:

    If you had previously selected symbols in your diagram, you can select them for checking with the Use Graphical Selection tool. For detailed information about these tools, see Adding an Item from a Selection List.

  4. Click OK to begin the model check.

    The Check Model Result List displays errors and warnings based on the check options you have defined. For information about how to correct errors, see Correcting Errors in the Check Model Result List.