Altium Designer Documentation


Created: August 2, 2017 | Updated: July 17, 2018
Now reading version 19.0. For the latest, read: RunQueryBuilder for version 22
Applies to Altium Designer versions: 18.0, 18.1, 19.0, 19.1, 20.0, 20.1, 20.2 and 21

Parent page: PCB Commands

The following pre-packaged resources, derived from this base command, are available:

Applied Parameters: RunRuleWizard=True


This command is used to run the Design Rule Wizard, from where you will be guided, step-by-step, through the process of creating a new design rule.


This command is accessed from the PCB Editor by choosing the Design » Rule Wizard command from the main menus.


After launching the command, the Design Rule Wizard will open. Use the pages of the Wizard to create a new design rule. Steps involve:

  1. Choosing the required rule type and giving it a meaningful name (and comment if required).
  2. Defining the scope of the rule. You will have the opportunity to further enhance scoping through an incarnation of the Query Builder that is built into the Wizard.
  3. Setting the rule priority.

If the Launch main design rules dialog option is enabled on the last page of the Wizard, the PCB Rules and Constraints Editor dialog will open upon clicking the Finish button. This dialog can be used to edit the constraints for your newly-created rule.


  1. The Query Builder is often used wherever there is a need to construct logical query expressions. It is a simpler method of constructing a query, using sensitive condition types and values that only allow a query to be constructed using relevant 'building blocks'. For advanced query construction, with full keyword specification and operator syntax, use the Query Helper, which is available as part of the scoping controls for a rule in the PCB Rules and Constraints Editor dialog.


Found an issue with this document? Highlight the area, then use Ctrl+Enter to report it.

Contact Us

Contact our corporate or local offices directly.

We're sorry to hear the article wasn't helpful to you.
Could you take a moment to tell us why?
200 characters remaining
You are reporting an issue with the following selected text
and/or image within the active document: