Defining Design Requirements Using the Constraint Manager in Altium Designer

Do I have the Constraint Manager?

  • The Constraint Manager is available in a PCB design project only if the Constraint Management option was enabled in the Create Project dialog when this project was created. Note that:

    • If the Constraint Manager was enabled for the PCB project, the PCB Rule and Constraints Editor dialog (Design » Rules) is not available in the PCB editor.

    • If the Constraint Manager was not enabled for the PCB project, only the previous approaches to define design constraints (use of design directives and the PCB Rule and Constraints Editor dialog) can be used.

    When the System.ConstraintManager option is enabled in the Advanced Settings dialog, the Constraint Management option is enabled in the Create Project dialog by default.

  • To quickly check which approach to defining design constraints is used in the current PCB project, check if the Design » Constraint Manager command is available in the main menus of the Schematic or PCB editor when a schematic/PCB document of the project is opened. If the command is there, the Constraint Manager is used for this project. Otherwise, the PCB Rule and Constraints Editor dialog (Design » Rules in the PCB editor) is used for this project.

  • If a PCB project uses the previous rules management system, you can perform migration to the Constraint Manager – learn more.

  • If the Constraint Manager was enabled for the PCB project, the Constraint Manager will present in View Only mode when opened by a user with no access to the functionality. In this case, the user will have the ability to see, but not modify, defined constraints. The message at the top of the Constraint Manager notifies you when the Constraint Manager is in View Only mode ().

The Constraint Manager is a document-based, spreadsheet-like user interface that allows you to view, create, and manage the design constraints used for your PCB designs.

Some of the advantages of using the Constraint Manager, especially for complex designs with many nets, classes, etc., are:

  • Availability at the project level that makes the access to the design constraint management similar from both schematic capture and PCB design domains.
  • A shift from query-based rule scoping to an applied object type matching simplifies constraint rule creation.
  • Use of constraint sets to expedite the process of defining the constraints.
  • Rule priority is automatic based on the natural hierarchy of design objects.
  • Using a document-based presentation interface rather than a dialog means that the schematic and PCB editor and its associated functions remain active and accessible.

Accessing the Constraint Manager

The Constraint Manager is accessed by selecting the Design » Constraint Manager command from the main menus of the schematic or PCB editor.

Is the Constraint Manager command not in the Design menu? Check if you have the Constraint Manager available – learn more.

Access the Constraint Manager from the schematic editor
Access the Constraint Manager from the schematic editor

Access the Constraint Manager from the PCB editor
Access the Constraint Manager from the PCB editor

Constraint Types

Using the buttons at the top left of the Constraint Manager, you can switch between its views to define different constraint types.

Javascript ID: CM_Views_AD24_8

Clearances – a matrix that allows defining electrical clearances between classes of nets and/or differential pairs.

Physical – a list of nets, differential pairs, xNets and their classes where you can define physical constraints for the design: widths of conductors, the gap in differential pairs, etc. When the Constraint Manager is accessed from the PCB, rooms currently defined in the PCB document are listed here, and you can define physical constraints for the rooms.

Electrical – a list of nets, xNets, and net and xNet classes, where you can define electrical constraints for the design: topology, impedance, etc. Differential pairs and xSignals are also listed on their dedicated tabs.

When the Constraint Manager is accessed from the PCB editor, an additional All Rules view is available. This is a rule-oriented view of the design constraints, a list of all rules in the PCB design where you can create custom rules based on queries – learn more.

Notes on working with the Constraint Manager:

  • Use the Units option in the Properties panel (or the corresponding options in the Tools » Measurement Units sub-menu in the main menus; shortcut: Ctrl+Q) to switch between the measurement units (mm or mils) in which the values are shown in the Constraint Manager grid area.

  • Use the Show Default Values option in the Properties panel (or the corresponding option in the View main menu or the View Options sub-menu of the grid area's right-click menu) to toggle the visibility of default values (e.g., values inherited from a net class or differential pair) in the Constraint Manager. When shown, these default values are displayed in the Constraint Manager grid area in grey. Custom values are displayed in the Constraint Manager grid area in white.

  • When in the Physical or Electrical view, use the Show Only Object Custom Values option in the Properties panel (or the corresponding option in the View main menu or the View Options sub-menu of the grid area's right-click menu) to toggle the visibility of object entries with the default values (effectively, to filter out entries with default values when the option is enabled).

  • Copying and pasting values from/to cells is supported – use the commands of the Copy/Paste Values sub-menu from the context menu or the Ctrl+C and Ctrl+V shortcuts.

  • Use the Search field at the top-right of the Constraint Manager to filter the list of objects by entering a search string. Click the  icon at the right of the Search bar to remove the currently defined search string.

  • A save action must be performed in the Constraint Manager before changes are reflected in the design. Use the File » Save (when the Constraint Manager is accessed from the schematic) or File » Save to PCB (when the Constraint Manager is accessed from the PCB) command from the main menus of the Constraint Manager or the Ctrl+S shortcut to do this.

  • If there are any changes in the schematic design or in the PCB layer stack (changes affected layers and/or impedance profiles), click the Refresh button at the top of the Constraint Manager (accessed from the respective editor) to reflect these changes in the Constraint Manager. If you have changes in the Constraint Manager not saved yet, a dialog that warns you that these changes will be lost appears for confirmation.

  • The following global options are available in the Clearances Settings region of the Properties panel from the Clearances and Physical views when the Constraint Manager is accessed from either the schematic or PCB:

    • Ignore Pad to Pad clearances within a footprint – use this option to apply the setting to all defined clearance rules. This option allows you to specify whether clearances between pads in the same component footprint are ignored.

    • Apply zero Keepout clearance – when this option is enabled, a default clearance rule is applied, with a gap of ‘0’, between a keepout and all other primitives in the design. Note that this rule is not visible on any of the Constraint Manager views and, therefore, cannot be modified. If disabled, the regular clearance matrix values will be followed.

Working with the Clearance Matrix

By default, the clearance matrix in the Clearances view of the Constraint Manager includes a single All Net Classes to All Net Classes entry with which you can define a default clearance value between any nets in the design. Use the Add control at the top left of the matrix (or right-click any cell in the clearance matrix and use the Add command from the context menu) to show a pop-up with a list of currently defined net and differential pair classes. Select one or more required classes (multiple class entries can be selected using the Shift+Click or Ctrl+Click technique) and click the Add button. A row and a column for each selected class will be added to the matrix.

Click a cell where the row and column of two classes intersect to select it and show the detailed clearance settings at the lower part of the Constraint Manager, where you can define specific clearance values between different objects and on different layers.

Javascript ID: CM_Clearances_AD24_3

Click a cell in the clearance matrix to access settings for the corresponding class pair that is denoted in the lower part. Use the Clearance field in the lower part to enter the required value that will be applied to all object pairings and all layers for this class pair. Alternatively, double-click a cell in the matrix in the upper part to directly enter the required value.

Enter the required clearance values for specific object pairs in the table. Note that the cell in the clearance matrix shows the range of minimum and maximum values defined in the table.

Multi-editing within a selected row/column is supported in the detailed clearance settings. Click the header of a row or column to select it, type the required value, and press Enter or click to apply this value to all cells of the row/column.

Note that if you change a track-to-primitive value, that same clearance will be applied to text-to-primitive.

Using the tabs below the table, you can also define clearance values by layers. Use the Add control to add a tab for a specific layer.

Note that when the Constraint Manager is accessed from the schematic editor, only the Top and Bottom layers can be added as specific layers. When the Constraint Manager is accessed from the PCB editor, any signal layer currently present in the PCB design can be added.

To quickly define values for the inner and outer layers, you can also enter two values delimited by a slash (e.g., 5/6) in a cell in the clearance matrix at the top. The first value will be applied to the inner layers, and the second value will be applied to the outer layers.

Notes on working with the Clearances view:

  • Entering a value into a cell in the clearance matrix or into the Clearance field will automatically apply that value to all of the fields in the grid region at the bottom of the Constraint Manager when a cell in the clearance matrix is selected. You only need to edit in the grid region when you need to define a clearance based on the object type.

  • In the detailed clearance settings at the lower part of the Constraint Manager, you can also enable the Creepage constraint for the selected classes and define the creepage value – show image. This constraint tests the creepage distance between the targeted signals across the board surface through unplated holes, cutouts, and around the board edge. 

  • To reset the clearance value for a specific object pair (for example, a Track to Track pair) to its default (i.e. to the value defined for the All Net Classes to All Net Classes entry), select its cell in the bottom table and press the Delete key or right-click the cell and select the Reset to Default command from the context menu.

  • To reset the clearance value for all object pairs of a specific entry in the clearance matrix (for example, a net class and another net class entry) to their defaults, right-click the corresponding cell in the clearance matrix and select the Remove Rule command from the context menu.

  • To remove a class from the clearance matrix, right-click any cell in the row for this class in the clearance matrix and select the Remove Scope command from the context menu.

Working with Physical and Electrical Constraints

When in the Physical or Electrical view of the Constraint Manager, click a cell in the grid area to show the settings of the corresponding rule(s) at the lower part of the Constraint Manager, where you can define their constraint values.

Javascript ID: CM_PhysicalElectrical_AD24_3

Notes on working with the Physical or Electrical views:

  • The Constraint Manager defines the priorities of the rules in these views automatically: the priority is ordered from All (lowest) to object class to object (highest).

  • To remove custom constraint values defined by a specific rule (effectively, reset values for this rule to its defaults), right-click the corresponding cell in the grid and select the Remove rule command from the context menu.

  • To remove custom constraint values by all rules for an object, right-click any cell in the row for this object in the grid and select the Remove rules from scope command from the context menu.

  • All nodes, except those predefined (e.g., All Nets), are collapsed in the Physical and Electrical views by default. You can use the Expand All and Collapse All right-click menu commands to control the grid nodes.

  • When a value is entered in the Physical view's top grid for a single net or xNet (Min Width or Preferred Width), differential pair (Min WidthPreferred Width, or Preferred Diff Pair Gap) or net/xNet/diff pair class, this value will be propagated to corresponding width (Min Width/Preferred Width/Max Width) or gap (Min Gap/Preferred Gap/Max Gap) fields in the constraint regions below. Note that an entered value will be propagated to other fields only if the object does not have the specific rule defined.

Configuring Constraint Values per Layer

When accessing the Constraint Manager from the schematic, you can configure the Width and Differential Pairs Routing constraints for layers in a chosen layer stack.

Using the drop-down at the top of the Constraint Manager, select an entry for a specific PCB document of the design project. If the selected PCB contains multiple layer stacks, you can choose the required stack for which constraints need to be configured using tabs in the lower part of the Constraint Manager when the corresponding rule is selected. Also, you can use a chosen Impedance Profile (where defined as part of the selected PCB’s layer stack).

Defining Differential Pairs

Differential pairs are created from the Physical view or from the Diff Pairs tab of the Electrical view of the Constraint Manager. For the Constraint Manager to create differential pairs from nets, the nets to be paired must have a consistent naming scheme (i.e. they have a common root followed by a consistent positive/negative suffix, for example, TX0_P and TX0_N).

Right-click anywhere in the grid area of the Physical view or the Diff Pairs tab of the Electrical view and select the Differential Pairs » Create Differential Pairs From Nets command from the context menu to open the Create Differential Pairs From Nets dialog to define differential pair creation options. The filters at the top of the dialog enable you to quickly target these nets in terms of the net class to which they belong and the particular differentiating factor that has been used to distinguish the positive and negative nets in an intended pairing, for example, _P and _N. You can also define a prefix to be added to the differential pair objects created and determine to which differential pair class they will be added.

For each differential pair object, the dialog lists its constituent positive and negative nets. By default, all prospective differential pair objects are selected for creation, and individual ones can be excluded by clearing the associated Create check box. 

When all options are set as required, click the Execute button – the differential pair objects will be created and shown in the Physical view of the Constraint Manager, with constituent nets listed under their entries.

To remove a differential pair, right-click its entry and select the Differential Pairs » Remove Differential Pair command from the context menu.

The Diff Pairs tab of the Electrical view can also be used for explicitly managing differential pairs. A hierarchical list of the differential pairs in the design is shown on this tab. Select a cell for a differential pair or differential pair class to present constraints for it in the bottom region of the Constraint Manager.

Defining xNets

A path from a source component to a destination component passing through one or more series components can be defined as an xNet.

Comma-separated lists of prefixes for designators of components that can be used as source or destination components (Sources/Destinations) and series components (Discretes) can be defined in the xNets Creation region of the Options tab of the Project Options dialog.

The xNets Creation region of the Options tab of the Project Options dialog
The xNets Creation region of the Options tab of the Project Options dialog

An example path that can be defined as an xNet in the Constraint Manager (according to the xNet creation settings shown above)
An example path that can be defined as an xNet in the Constraint Manager (according to the xNet creation settings shown above)

In the Physical or Electrical view of the Constraint Manager (when it is accessed from either a schematic or PCB), right-click a net to be included in a new xNet and select the xNets » Create xNets From Selected Nets command from the context menu. A new xNet will be created and shown in the Physical or Electrical views of the Constraint Manager, with constituent nets listed under its entry.

To remove an xNet, right-click its entry and select the xNets » Remove xNet command from the context menu.

Defining xSignals

From the Constraint Manager, you can also define xSignals – user-defined signal paths between two nodes in the PCB. When in the Electrical view of the Constraint Manager, select the cell in the Topology column for a net or xNet, choose Custom from the drop-down in the lower part of the Constraint Manager, and then use the provided controls to define the custom topology and select corresponding xSignals.

An example of defining xSignals for an xNet shown below is described and demonstrated thereafter.

An example of xNet for which xSignals should be created.
An example of xNet for which xSignals should be created.

A custom topology can be defined using the topology graph in the lower part of the Constraint Manager. Use the right-click menu in the graph area to add and remove nodes and change their type from Source to Destination and back and Click, Hold&Drag the nodes to define the tolopogy.

The list of proposed xSignals (named using the <SourceNetName> (<SourcePinDesignator> → <DestinationPinDesignator>) scheme) appear at the right of the grid area. The list is divided into two groups: xSignals going from a source to a destination (S-T) and xSignals going from one destination to another (T-T). Use checkboxes for groups or individual xSignals to select/deselect xSignals to be created. Selected xSignals will appear on the xSignals tab of the Electrical view.

An example of creating xSignals using the topology graph

Alternatively, a custom topology can be defined using the table. Add the required pins and serial components using the Pin column, select their roles (Source, Destination, or Discrete) using the Role column, and define the desired order using the Order column.

The topology graph functionality is in Open Beta and available when the ConstraintManager.TopologyGraphAvailable option is enabled in the Advanced Settings dialog. When the option is disabled, the table user interface is used.

An example of creating xSignals using the table user interface

  • For names of created xSignals that can be seen on the xSignals tab to the Constraint Manager or in the PCB document, the following scheme is used:

    <SourceNetName>_<SourcePinDesignator>_<DestinationPinDesignator>

  • To quickly propagate defined custom topology to xNets/nets and create multiple xSignals of a similar structure, you can create a Constraint Set for an xNet/net with a custom topology and then apply this Constraint Set to other xNets/nets. When editing a Constraint Set that includes a custom topology, changes to the topology will be propagated to other objects to which this Constraint Set is applied.

  • An xSignal can be removed from the xSignals tab of the Electrical view. To do this, right-click an xSignal and select the xSignals » Remove xSignal command from the context menu.

  • Associated xSignals are automatically removed when changing from the Custom topology to one of the predefined topologies for the selected net/xNet.

  • When the Custom topology is selected for a 2-pin net, its pins are automatically added as nodes of the custom topology, and the proposed xSignal is automatically selected. 

For a created xSignal class (refer to the Defining Classes section below for details), the Tolerance constraint can be defined, and an xSignal within this class can be selected as Matching Length. When the Constraint Manager is accessed from the PCB side, the Actual Value and Margin columns are also available.

In the PCB document, the defined xSignals can be browsed from the PCB panel in its xSignals mode. Also, corresponding From-Tos will be created and can be browsed from the PCB panel in its From-To Editor mode.

Javascript ID: CM_xSignals_PCB_AD23_11

In the PCB document, the generated xSignals can be browsed from the PCB panel in its xSignals mode.

From-Tos will also be generated, and they can be browsed from the PCB panel in its From-To Editor mode.

Defining Classes

The Constraint Manager allows you to define classes of nets, differential pairs, xNets, and xSignals.

  • To add objects in the Physical or Electrical view of the Constraint Manager to an existing class, select multiple object entries using the Ctrl+ClickShift+Click or Click, Hold&Drag technique, then right-click the selection and choose the required class from the Classes » Add Selected to Class sub-menu of the context menu.

    When there are more than 30 classes, the Classes » Add Selected to Class » Existing Class command is presented instead of the list of classes. Use this command to access a dialog where you can select an existing class to which the selected object(s) are to be added.

  • To add a new class of objects listed in the Physical or Electrical view of the Constraint Manager, select them, then right-click the selection and choose the Classes » Add Selected to Class » New Class command from the context menu to open the Add Class dialog. Define the class Name (which must be unique and not empty) and the set of class members. The objects selected prior to accessing the dialog will be already in the Member list. If required, further configure the set of class members by moving object entries between Non-Members and Member lists using the arrow buttons.

  • Alternatively, right-click in the grid area and select the Classes » Add Class command in the Clearances or Electrical view or a command from the (to add a net class) or the Classes » Add Class sub-menu to access the Add Class dialog. When accessing the dialog this way, the Member lists will initially be empty.

  • To remove objects from a class to which they are currently added, select them, then right-click the selection and choose the Classes » Remove Selected from Class command from the context menu.

  • To edit an existing class, right-click its entry and select the Classes » Edit Class command from the context menu to access the Edit Class dialog, where you can edit the name and members of the class.

  • To remove an existing class, right-click its entry and select the Classes » Remove Class command from the context menu.

Alternatively, you can use the Object Class Explorer dialog to add, edit, and remove classes. Right-click in the grid area and select the Classes » Class Explorer command from the context menu to open the dialog.

The folder-tree pane on the left side of the dialog lists supported object class types and existing object classes of each type.

  • Click on the root Object Classes folder to access a summary listing in the main editing region of the dialog of all specific classes that have been defined across all object class types.
  • Click on a child object class type folder to access a summary listing of all specific classes that have been defined for that type.
  • Click on the entry for a specific class (or double-click on its entry in a summary list) to access controls for managing the object membership of that class.

To add a new user-defined class from the Object Class Explorer dialog, right-click within the category of class you want to create and choose Add Class from the context menu. To rename or delete a user-defined class, right-click its name and choose Rename Class or Delete Class, respectively.

Default system classes (All Nets, All Differential Pairs, All xNets, All xSignals) cannot be edited, renamed, or deleted. In the Object Class Explorer dialog, these classes are distinguished by their names being enclosed in <>.

Constraint Sets

To expedite the process of defining constraints for objects, the Constraint Manager provides the ability to save a set of constraints as a Constraint Set and then apply this Constraint Set to objects.

To save the set of constraints currently defined for an object as a Constraint Set, right-click a cell for this object and select the Save as Constraint Set command from the context menu. In the New Constraint Set pop-up, enter the desired name of the Constraint Set (which must be unique and not empty) and click Create.

A newly created Constraint Set will be applied to the object from which the Constraint Set has been created. To apply a Constraint Set to another object, right-click its cell and select the required Constraint Set from the Select Constraint Set sub-menu of the context menu. The cells to which a Constraint Set is applied are distinguished with a symbol in their top-left corner (e.g., ), and, in the Physical or Electrical views, the name of the applied Constraint Set will be reflected in the Constraint Set column.

To edit the values of an existing Constraint Set, select an object to which this Constraint Set is applied and click the  button. Change the constraint values as required and then click the Save button in the pop-up that appears to save the changes. The changes will be applied to all objects to which that Constraint Set is currently selected.

Currently defined Constraint Sets are listed in the Constraint Sets region of the Properties panel. Click the entry of a Constraint Set to show its constraint values. A Constraint Set selected in the Properties panel can be removed by clicking the  button at the bottom of the Constraint Sets region. Objects to which the removed Constraint Set has been selected will keep the constraint values applied by this Constraint Set before its removal.

When accessing the Constraint Manager from the schematic and configuring constraints for different layer stacks (see Configuring Constraint Values per Layer for details), constraint sets remember which layer stack they were created in. For the currently chosen layer stack, it is not possible to assign or modify a constraint set that was created for a different layer stack. The message This Constraint Set was created for a different layer stack will appear in the Properties panel when this is the case ().

You can also import and export constraint sets, which enables you to quickly reuse constraint information between different board designs. To access, right-click in the ClearancesPhysical, or Electrical view, then select Export » Export Constraint Sets or Import » Import Constraint Sets.

Exporting Constraint Sets

After selecting Export » Export Constraint Sets, the Constraint Sets for Export dialog opens with all constraint sets that are currently present in the design listed in the grid. Select the constraint sets you want to export using checkboxes, then click OK. The selected constraint sets will be exported into a file with the extension *.CstrDot. The file can then be imported into another design.

Importing Constraint Sets

After selecting Import » Import Constraint Sets, the standard File Explorer dialog opens in which you can select a *.CstrDot file to import. In the Constraint Sets for Import dialog that opens, select the constraint sets you want to import from the file, then click OK. Imported constraint sets can be inspected in the Properties panel when the corresponding view of the Constraint Manager is selected and can be applied to objects.

Importing Directives from Schematics

This feature is available when the ConstraintManager.ImportFromDirectives option is enabled in the Advanced Settings dialog.

You can import net and diff pair classes, differential pairs and constraints from parameter set and differential pair design directives, placed and defined on your schematic source documents, into the Constraint Manager. To perform this, use the Import from Directives command from the right-click menu of the Physical or Electrical view when accessing the Constraint Manager from a schematic. The Import values to Constraint Manager dialog will display a summary of the import from the schematic to the Constraint Manager that will be completed by clicking the Import button in the dialog.

There is an indication of sync status between a constraint in the Constraint Manager and the equivalent defined in a directive placed on a schematic.

  • When an object in the schematic has a parameter set or differential pair directive placed on it, and this directive has constraint values that differ from values defined for the same object in the Constraint Manager, these values will be marked with an orange bar at the left side of the corresponding cell in the Physical or Electrical view of the Constraint Manager when the Constraint Manager is accessed from a schematic (e.g., ).

  • When values of the constraint are in sync between the Constraint Manager and the directive, the indication changes to a green bar (e.g., ).

  • Any existing constraints already defined for nets/net classes/diff pairs/diff pair classes through the Constraint Manager will take precedence and are kept when an import is processed. Therefore, if a constraint value that has been synchronized with a directive is edited in the Constraint Manager after using the Import from Directives command, it will not be synchronized after subsequently using the Import from Directives command again.

  • After synchronizing data by importing data from directives to the Constraint Manager and saving changes in the Constraint Manager:

    • Imported directives will be distinguished in the design space by blue coloring and using a slightly different symbol ().

    • Entries for classes and rules imported to the Constraint Manager can be filtered out using the Constraint Manager button at the top of the Properties panel's Parameters region.

    • The controls to add a new or edit/remove an existing net class, diff pair class, or components class will be grayed out in the Properties panel for the corresponding directives.

    • The controls to add a new or edit/remove an existing rule will still be available in the Properties panel for the corresponding directives. To apply changes made in rules of an already imported directive to the data in the Constraint Manager, click the  button at the top-right of the Constraint Manager when it is accessed from the schematic side.

Javascript ID: CM_ImportDirectives_AD24_10

On a schematic, parameter set and differential pair directives are placed. These directives define the following:

  • A Width constraint for net A00.

  • A net class and Width constraint for net A09.

  • A diff pair of nets DQS0R_P and DQS0R_N.

In the Physical view of the Constraint Manager, cells related to width constraints of nets A00 and A09 have an orange bar that indicates these values are not in sync with the directives.

Use the Import from Directives command from the right-click menu in the Constraint Manager to import data from directives.

The Import values to Constraint Manager dialog will open in which you can review data to be imported to the Constraint Manager. After review, click the Import button to import all data from directives.

After using the command, Width constraints, a net class and a diff pair are imported to the Constraint Manager. Cells related to Width constraints of A00 and A09 now have a green bar that indicates that these values are in sync with the directive.

Directives will change their appearance in the schematic design space. While it is still possible to add, edit, and remove rules in directive properties, the controls to add, edit, and remove classes are now grayed out.

Modifying Directives Imported from Read-only Documents

Directives that have been imported from read-only documents (for example, device sheets and managed sheets) cannot be modified if the Make Device Sheets In Projects Read-Only option is enabled (checked) on the Data Management - Device Sheets page of the Preferences dialog.

When the option is disabled (unchecked), the directives can be modified. After directives have been imported (with the option enabled), the rule is highlighted in blue in the Constraint Manager.

Importing and Exporting Constraints between Designs

You can export and import constraints between designs. To access, right-click in the Clearances, Physical, or Electrical view of the Constraint Manager, then select Export » Export Constraints for selected lines or Import » Import Constraints.

Exporting Constraints

After selecting one or more cells in the Clearances view or one or more lines in the Physical or Electrical view and then choosing Export » Export Constraints for selected lines, the Constraints for Export dialog opens with constraints for all objects that have been selected prior to choosing the command listed in the grid. Select the constraints you want to export using checkboxes (constraints related to the current view will be selected in the dialog by default). After clicking OK, the selected constraints will be exported into a file with the extension *.CstrDot. The file can then be imported into another design.

Importing Constraints

After selecting Import » Import Constraints, the standard File Explorer dialog opens in which you can select a *.CstrDot file to import. In the Constraints for Import dialog that opens, select the constraints you want to import from the file, then click OK. The selected constraints will be applied to corresponding objects in the target design.

  • If a net selected for import does not exist in the target design, an entry for it will be added to the Constraint Manager. Since there is no such net in the design, the entry will be marked with the  icon. Constraint values can be copied from this entry and pasted into an existing object. The issue can be resolved by adding a net with the same net to the design and then refreshing the data in the Constraint Manager. Alternatively, an unmatched object can be removed from the Constraint Manager by right-clicking its entry and selecting Delete unmatched objectshow image.
  • If a diff pair or xNet selected for import does not exist in the target design, it will not be added to the design.
  • If a net / diff pair / xNet class selected for import does not exist in the target design, it will be added to the design automatically.

Working with All Rules on the PCB Side

When the Constraint Manager is accessed from the PCB editor, the All Rules view is available, where a list of all rules in the PCB design is present. From here, you can create custom (or advanced) rules that feature more complex query expressions in their matching scope.

Creating a new custom rule in the Constraint Manager is similar to constructing a rule in the PCB Rules and Constraints Editor dialog (refer to the PCB Design Rule Types page to learn more about rule types available in the dialog as well as in the All Rules view of the Constraint Manager).

To create a new custom rule in the All Rules view of the Constraint Manager, select Add Custom Rule from the right-click context menu (or use the Add Custom Rule button at the lower part of the Constraint Manager when no rule is selected in the grid area), then enter a query-based matching scope and the constraint parameters in the column grid or the lower graphical representation.

To delete the currently selected custom rule, right-click it and select Remove Custom Rule.

Custom rules (listed under the Advanced Rules lists in the All Rules view) take precedence over the rules defined in other views of the Constraint Manager (and listed under the Basic Rules lists in the All Rules view). Priorities of custom rules can be redefined by typing the required priorities (1 is the highest priority) into the Priority column – show image. Priorities of rules listed under the Basic Rules lists cannot be redefined.

To simplify the repeated process of creating custom type rules, the Constraints Manager allows you to store query-based object-matching scopes in the Scopes Library. The library is managed using the Scopes Library dialog accessed by clicking the Edit Library button in the Scopes Library region of the Properties panel. The library is presented in the Properties panel, where custom scopes can be imported and exported as an XML file, which can then be used to populate the Scopes Library of another Altium Designer installation.

To export a scope to or import one from the library, use the commands of the menu of the  button next to the Object Match / Second Object Match field in the lower part of the Constraint Manager. Once a library-based scope has been applied to a rule, the name of the scope will be shown in the Object Match / Second Object Match column in the grid area and above the Object Match / Second Object Match field. You can use the field's  menu to revert the scope to its query-based format (Detach Scope).

Enabling/Disabling Rules

You can enable/disable basic and advanced rules listed in the All Rules view. The Enabled column reflects the state of a rule: True (enabled) or False (disabled). Double-click a cell in the column and toggle the state of a specific rule. Cells corresponding to disabled basic rules are labeled (Disabled) and grayed out in the Physical and Electrical views.

The enabled state of advanced rules of a particular type, category, or all advanced rules can also be toggled using commands available from the right-click context menu for the corresponding entry in the Rule Class tree.

Javascript ID: CM_EnableDisableAdvancedRules_AD24_8

Right-click a rule type entry in the Rule Class tree to enable/disable advanced rules of this type.

Right-click a rule category entry in the Rule Class tree to enable/disable advanced rules in this category.

Right-click the Rule Class heading to enable/disable all advanced rules.

Cross-Probing

The Constraint Manager includes a cross-probe feature that will show the associated objects by visually highlighting them in the corresponding document. To cross probe to any object, right-click on its entry, then choose the Cross Probe option from the context menu or select Cross Probe from a custom rule's  menu.

Javascript ID: CM_CrossProbe_AD24_1

Set the Cross Probe View Settings in the Properties panel to configure cross-probing settings.

Use the schematic/PCB editor Clear Filter option (right-click in the design space and select Clear Filter, shortcut: Shift+C) to reset cross-probe highlighting.

Refer to the Cross-Probing & Selecting page to learn more about cross-probing in Altium Designer.

Cross Selecting

The cross selecting feature facilitates dynamic, bi-directional object selection. When cross select mode is enabled (using the Cross Select Mode command from the Tools main menu of the Constraint Manager, the schematic or PCB editor), objects selected in the Constraint Manager are also selected in the schematic and PCB documents, and vice versa.

Refer to the Cross-Probing & Selecting page to learn more about cross selecting in Altium Designer.

Transferring Constraints between Schematic and PCB

Changes applied in the Constraint Manager are transferred between the schematic and PCB designs using the Engineering Change Order (ECO) process. Select a command to update the constraints on the other side:

  • To transfer changes from the schematic to the PCB – select the Design » Update PCB Document <PCBDocumentName> command from the main menus of the schematic editor.

  • To transfer changes (made in the Clearances, Physical and/or Electrical views of the Constraint Manager) from the PCB to the schematic – select the Design » Update Schematics in <PCBProjectName> command from the main menus of the PCB editor.

Use the subsequential Engineering Change Order dialog to explore, validate and execute the changes.

When transferring changes from the schematic to the PCB, note that only those rules, net classes, differential pairs and differential pair classes defined in the Constraint Manager are transferred. The following will not be detected and transferred:

  • Rules defined using the Parameter Set and Differential Pair directives or the Properties panel for the schematic document options.

  • Automatically generated net classes (according to the settings on the Class Generation tab of the Project Options dialog).

  • Net and differential pair classes defined using Parameter Set and Differential Pair directives.

  • Differential pairs defined using Differential Pair directives.

Note that net classes defined in the Constraint Manager will be transferred irrespective of settings on the Class Generation tab of the Project Options dialog.

You can import rules, net classes, differential pairs, and differential pair classes from directives placed in schematics using the Import from Directives command from the right-click menu of the Physical or Electrical view of the Constraint Manager when accessed from schematics – learn more.

When synchronizing schematics and PCB, you will be alerted in the Engineering Change Order dialog if changes made in the Constraint Manager have not been saved. The warning will include on which side the changes have not been saved – schematics, PCB, or both.

The Engineering Change Order dialog will warn you if there are unsaved changes in the Constraint Manager. In this example, both schematics and PCB include unsaved changes in the Constraint Manager.
The Engineering Change Order dialog will warn you if there are unsaved changes in the Constraint Manager. In this example, both schematics and PCB include unsaved changes in the Constraint Manager.

The Engineering Change Order dialog will also show a warning if there are design directives that exist on the schematics that were not previously imported to the Constraint Manager.

The Engineering Change Order dialog will warn you if there are directives that were not previously imported.
The Engineering Change Order dialog will warn you if there are directives that were not previously imported.

Refer to the Keeping the Schematics & PCB Synchronized page to learn more.

Migrating from Design Rules to the Constraint Manager

This feature is in Open Beta and available when the ConstraintManager.ProjectMigrationWizard option is enabled in the Advanced Settings dialog.

If a PCB project uses the old rules management system (i.e., PCB Rules and Constraints Editor dialog), you can perform a one-time, one-way migration to the Constraint Manager.

Use the Design » Migrate Project to Constraint Manager Flow command from the main menus in the PCB and schematic editors. The Migration Required dialog opens to warn that the migration will take place and it cannot be undone after the  button is clicked.

Both PCB design rules and schematic directives will be transferred into applicable corresponding constraints within the Constraint Manager. Once the migration has successfully concluded, the Constraint Manager will be opened (in the context of which editor was active when you performed the migration).

If a design rule with a default scope does not exist in the PCB Rules and Constraints Editor dialog (e.g., there is no Width rule with the scope All), it will be created in the Constraint Manager as part of the migration process.

If you find an issue, select the text/image and pressCtrl + Enterto send us your feedback.
Note

The features available depend on your Altium product access level. Compare features included in the various levels of Altium Designer Software Subscription and functionality delivered through applications provided by the Altium 365 platform.

If you don’t see a discussed feature in your software, contact Altium Sales to find out more.

Content