Working with Design Checks

The design check capabilities allow you to perform the following checks:
  • the cable length does not exceed a specified maximum length (MaxLength) per cable type (CableType)
  • the number of components does not exceed a specified maximum (MaxNumberOfComponents).
  • the sum of all cable length does not exceed a specified maximum length (MaxLength) per cable type (CableType)

Make sure you have set up the correct options for the design checks.

Open a document containing schematic components and cables already routed.

  1. Click the Catalog Browser button.

  2. Select the following catalog using the Browse another catalog button:

    intel_a/startup/Electrical/Schematic/DesignChecks/SystemChecks.catalog
    The catalog displays:
  3. Select a check in the catalog, for example SystemRule in the SystemCheck family.

    The Rule Base Catalog window opens:
  4. Select Import and click OK to validate.

    The rule base and the checks are displayed in the specification tree.
  5. Close the Catalog Browser.

  6. Now define the settings for the rule base:

    1. Right-click the RuleBase node in the specification tree and select RuleBase object -> Settings.
      The RuleBase Settings window opens:

    2. Define the output format, the location for the generated report, etc.

    3. Click OK to validate.

    For more information, refer to the Knowledge Expert User's Guide.

    (Basic Tasks - About Expert Checks - Generating a Check Report).

  7. Change the check parameters.

    1. Double-click the design check to activate the Knowledge Expert workbench.

    2. Right-click the MaxLengthByCableType check node in the specification tree and select MaxLengthByCableType object -> Definition...
      The Check Editor opens:

    3. Change the parameter value (such as MaxLength).

    4. Click OK to validate.

  8. Run the check.

    Right-click the RuleBase node in the specification tree and select RuleBase object -> Manual Complete Solve.

    The rule icons are updated according to the result of the checks:

    red light if the check fails,
    green light if it's  successful.
  9. Generate the report for the check.

    Right-click the RuleBase node in the specification tree and select RuleBase object -> Report... The report is generated, according to the parameters defined in step 6.
  10. Identify failed items for a given check.

    Right-click a failed check in the specification tree and select Highlight Failed Components. The components which failed the check (MaxNumberOfComponents) are highlighted.

Here are the functions available in the ElectricalShipbuilding package to create checks:

  • ElecSchCable::CheckLengthByCableType (CableType: String, MaxLength: Length): String
    to check that the cable length does not exceed a specified maximum length per cable type.
  • ElecSchEquipment::CheckMaxNumberOfComponents (MaxNumberOfComponents: Integer): String
    to check that the number of components does not exceed a specified maximum
  • ElecSchCable::CheckLengthSumByCableType (CableType: String, MaxLength: Length): String
    to check that the sum of all cable length does not exceed a specified maximum length per cable type

Refer to the Knowledge Expert User's Guide to see how to create checks.