Tutorial
On this page

Creating and Validating Connection Rules

Purpose

Define Required, Allowed, and Forbidden component pairs, then review modeled connections against saved rules.

Example

Permit a selected flange family to connect to a matching valve family, forbid another combination, and add a stricter size-level rule where the design standard needs exact sizes.

Prerequisites

Open Plant Detective with PDT. Have an accessible Plant 3D specification for From Spec, or connected modeled Plant parts for From Drawing. Confirm the intended rule provider under Settings → Database Provider and permission to save to it. See cache and result controls before validating the model.

1. Open spec-based creation

  1. Click Rules → 1. Create Rules.
  2. Choose From Spec.
  3. Select the specification in Spec:.
  4. Wait for the tree and grid to populate. Loading happens automatically after selecting the specification; there is no separate loading button.
  5. Expand tree branches to browse component families and sizes.
  6. Click a tree name to filter the grid.
  7. Compare Spec, ND, Unit, Size Description, Part Description, and Type before choosing parts.
Plant Detective: Rules → 1. Create Rules → From Spec
Rules → 1. Create Rules → From Spec

2. Add parts to Side A

  1. Check the boxes beside the intended parts or branches. Checking a branch can collect its descendants.
  2. Make sure no unintended grid rows remain selected. Add to Side A uses selected grid rows if any exist; otherwise it uses checked tree parts.
  3. Click Add to Side A.
  4. Expand Side A and review its part list and summary.
  5. If the set is wrong, click the Clear button inside Side A and rebuild that side.

Alternatively, select specific grid rows and click Add to Side A, or use Add Selected to Side A from the grid context menu. This is useful for selecting only particular sizes.

Expected result: Side A contains the accumulated parts. Adding parts does not yet save a rule.

3. Add parts to Side B

  1. Click Clear Checks before choosing the second set. It clears spec-tree checks and grid selections and reloads the current specification's full grid.
  2. Browse to the second family.
  3. Check the desired boxes, or deliberately select the desired grid rows.
  4. Click Add to Side B.
  5. Review Side B's tree and summary.
  6. Use Side B's Clear to replace that side if necessary.

Clear Checks clears the browser selection. Use the side-specific Clear buttons to empty Side A or Side B.

Expected result: Both sides contain the intended components. Rules are bidirectional; reversing the sides does not establish a different permitted direction.

4. Choose matching scope and status

  1. Choose Family Match for family identities that should apply across equivalent sizes.
  2. Choose Size Match when selected size identities must be distinguished.
  3. Choose Required, Allowed, or Forbidden.
  4. Recheck both sides. Every unique identity on Side A is combined with every unique identity on Side B at that scope. Several selections can produce many pairs, not just one first-row-to-first-row rule.

Allowed records an accepted pair; Forbidden records a disallowed pair; Required records the required status for the pair. The drawing results classify modeled connections. A required-status count alone does not establish that every intended connection exists.

5. Preview and save

  1. Click Create Rule.
  2. In Preview Connection Rules, verify status, scope, side counts, and the number of unique pairs to create or update.
  3. For a family rule, review the listed pairs.
  4. For a size rule, review selected parts and pair counts. The size preview deliberately does not enumerate every possible pair.
  5. Click Cancel if the set is too broad, adjust the sides, and try again.
  6. Click Create Rules in the preview to commit.
  7. Read the save summary. If nothing would change, the application reports that instead of saving redundant rules.

Expected result: New/updated definitions are saved to the configured rule store. There is no separate Save step after Create Rules.

Alternative: From Drawing

  1. In 1. Create Rules, choose From Drawing.
  2. Under Create Rule From Drawing, click Start Rule Creation.
  3. Select at least two connected Plant 3D parts in the model and finish selection with Enter.
  4. At Set rule scope: choose PartFamily or PartSize. Enter accepts PartFamily.
  5. At Set connection rule status: choose Allowed, Required, or Forbidden. Enter accepts Allowed.
  6. Read the command-line completion count and reported scope/status.
  7. Open 2. Your Rules and refresh to confirm the saved definitions.

This mode saves actual connected pairs whose two members were selected. It does not combine every selected object with every other selected object. If there are no qualifying connected pairs, no rules are created. The spec browser and two side panels are hidden; scope/status come from the command-line prompts.

6. Review and manage saved rules

  1. Open 2. Your Rules. Data loads on opening; use Refresh if a recent change is not visible.
  2. Start with scope All and status All.
  3. Choose Part Family or Part Size to restrict scope. Part Family hides size-specific columns.
  4. Choose Required, Forbidden, Allowed, or Undefined in the status filter when needed.
  5. Enter search text to narrow the returned rule set.
  6. Expand the pair tree and click a node to see associated rows. Read the row summary to distinguish a subset from the full returned set.
  7. Compare Scope, Status, Spec 1/2, Type 1/2, and Family 1/2. For size rules also compare Size 1/2, Diameter 1/2, and Unit 1/2.
  8. Use the shared Filter and Data menus to narrow, copy, or export definitions.

Change a rule

Return to 1. Create Rules, recreate the same pair at the same scope with the desired status, review the preview, and save. Saving supports updates to existing pair identities. The active saved-rules grid has no inline Edit action.

Delete rules

  1. Filter to the intended scope and pair.
  2. Select the exact grid rows.
  3. Right-click and choose Delete Selected Rule(s).
  4. Read the confirmation and choose Yes only for the intended set.
  5. Review the refreshed grid.

The tree context menu provides expansion/collapse controls. Use grid deletion rather than assuming a tree branch can delete rules. Deleting a definition does not edit the model; rebuild validation to see the status change.

7. Build data and open Drawing Rules

  1. Click Drawing Cache, confirm Build Drawing Cache, and wait for completion.
  2. Open 3. Drawing Rules.
  3. Choose Drawing and All, Part Family, or Part Size in the rule-scope filter.
  4. Choose Entire Drawing for all results. To restrict results, select objects in AutoCAD first, then click Selected Items. With no model selection, the application asks for one.
  5. Expand the tree and click a pair/status group.
  6. Read Status and Matched, then compare both sides' Spec, Type, Family, Size, Diameter, Unit, and Port.
  7. To focus on a status, right-click its Status cell and use Filter → Include Status: ….
  8. Select suspect rows and use the row zoom action or Navigate → Zoom to Selected Rows (…).
  9. Use Select in Drawing for components, optionally with connectors.
  10. Use Highlight for a visual overlay, or Isolate in Drawing for a focused view.
  11. Restore visibility with End Isolation and remove overlays with Clear Highlights.
  12. Export the review set through Data → Export Displayed Rows to CSV, or export only the selected exceptions.

For project results, build Project Cache and choose Project. Read Drawing and apply the project/Xref limits before acting on rows.

8. Visualize validation

  1. Open 4. Visualize and choose Drawing.
  2. Click Refresh Tab to reload saved counts.
  3. Compare Forbidden connections, Undefined connections, Required connections, Allowed connections, and Mixed-status objects. Mixed is an object rollup: one object can participate in different-status connections.
  4. Click a result card to select its objects.
  5. Click Highlight Issues and compare the model overlay with Highlight Color Legend.
  6. Under Isolate in Drawing, choose Forbidden Conn., Undefined Conn., Required Conn., Allowed Conn., or Mixed Objects.
  7. Use End Isolation and Clear Highlights when finished.
  8. Click Validate Selected for a direct check, follow the model-selection prompt, and read the command-line result.
  9. Choose Project for project visualization. Use the provided loaded-Xref colors, visibility, isolation, and component-opening controls when targets are available.

Next steps

Correct model connections or refine definitions, rebuild, and repeat the same filters. Save before/after CSV review sets. For open ports and connectivity findings, continue with Piping Networks.

Search Plant Detective help

Type to search all 45 help pages.