Altium Designer Documentation

Edit PCB Rule

Modified by Phil Loughhead on Jun 16, 2017

An example of the Edit PCB Rule dialog for a defined Height rule.

Summary

This dialog allows you to edit the properties of the selected design rule, including its name, its scope, and its constraints.

The controls offered by the dialog and its banner text will vary depending on the type of design rule being edited.

Access

The dialog is accessed from within the PCB Editor in the following ways:

  • Double-click on a specific rule entry in the PCB Rules And Violations panel.
  • Right-click on a specific rule entry in the PCB Rules And Violations panel, and choose the Properties command from the context menu.

Options/Controls

  • Name - the current name of the rule. This can be changed as required.
  • Comment - this field displays any comment added for the rule, for example a meaningful description of what the rule is being used for.
  • Unique ID - the unique identifier for the rule. Every rule is itself a design object, and hence a tangible piece of data. The use of an ID ensures uniqueness. Where the Unique ID really comes into play however, is for a rule that has been created within the schematic domain. When adding design rule parameters to objects on a schematic, a unique ID is given to each rule parameter. The same IDs are given to the corresponding design rules that are created in the PCB. With this Unique ID, the constraints of a rule can be edited on either the schematic or PCB side and the changes pushed through upon synchronization.

Rule Scoping Controls

When defining the scope of a design rule - the extent of its application - you are essentially building a query to define the member objects that are governed by the rule. Use the options available in the dialog to build the query required. Depending on whether the rule is unary or binary, you will need to define one or two scopes respectively.

For a unary design rule, controls will be provided to define a single rule scope. Use the options available in the Where The First Object Matches region to help build the query expression, which will be presented in the Full Query region to its right. For a binary design rule, controls will also be provided to define a second rule scope. Use the options available in the Where The Second Object Matches region to help build the query expression, which will be presented in the Full Query region to its right.

Controls are identical, whether defining one or two rule scopes, and are detailed in the following sections.

Where The Object Matches

  • Scoping Option - choose one of the following options to determine how to generate the scoping query expression:
    • All - choose this option to generate a scope query that targets all design objects. The expression All will be loaded into the associated Full Query region.
    • Net - choose this option to generate a scope query that targets all objects in a specific net. Choose the required net from the top drop-down field. The expression loaded into the associated Full Query region will be in the format InNet('<NetName>').
    • Net Class - choose this option to generate a scope query that targets all objects in a specific net class. Choose the required net class from the top drop-down field. The expression loaded into the associated Full Query region will be in the format InNetClass('<NetClassName>').
    • Layer - choose this option to generate a scope query that targets all objects on a specific layer. Choose the required layer from the top drop-down field. The expression loaded into the associated Full Query region will be in the format OnLayer('<LayerName>').
    • Net and Layer - choose this option to generate a scope query that targets all objects in a specific net and on a specific layer. Choose the required net from the top drop-down field, and the required layer from the bottom drop-down field. The expression loaded into the associated Full Query region will be in the format InNet('<NetName>') And OnLayer('<LayerName>').
    • Advanced (Query) - choose this option to be able to write your own, maybe more complex, but also more specific query. If you start to write a query expression directly in the associated Full Query region, this option will automatically be selected.
  • Top Drop-Down Field - when using the Net (or Net and Layer), Net Class or Layer options, this field's drop-down will populate with all defined nets in the design, all defined net classes in the design, or all currently enabled layers in the design, respectively. Choose the required target accordingly.
  • Bottom Drop-Down Field - when using the Net and Layer option, this field's drop-down will populate with all currently enabled layers in the design. Choose the required layer accordingly.
  • Query Builder - click this button to open the Building Query from Board dialog, which enables you to create a query for targeting specific objects in the design document, by simple construction of a string of ANDed and/or ORed conditions.
  • Query Helper - this button becomes available when the Advanced (Query) option is chosen. Click it to access the Query Helper dialog. The underlying query engine analyzes the PCB design and lists all available objects, along with generic keywords for use in queries.
The Query Builder is a simpler method of constructing a query, using sensitive condition types and values that only allow the designer to build using relevant 'building blocks'. For advanced query construction, with full keyword specification and operator syntax, use the Query Helper.

Full Query

This region of the dialog reflects the current query expression created for the rule scope. The expression is loaded automatically by:

  • Choosing a basic scoping option (All, Net, Net Class, Layer, Net and Layer), and specifying the relevant target net, net class, layer, or net and layer, from the drop-down fields.
  • Using the Query Builder to construct a query expression.
  • Using the Query Helper to construct a query expression.

Alternatively, and if you are conversant with the Query Language, you can enter a query expression directly in the region.

You can paste a query expression from your favorite editor, directly into the region. You can also copy an expression, perhaps to work on it in an external editor, or even to paste into the second scope of a binary rule - especially useful if the two scopes are complex, but differ only slightly.

Constraints

This region of the dialog presents the constraints applicable to the type of rule being edited. Use the various controls to configure these constraints as required.

Query Expression Operator Precedence

Brackets have the highest precedence within an order of precedence that has been defined for the various operators, and which determines how queries are interpreted by the software (whenever the user has not provided brackets). The sequence of this order is as follows:

Brackets
Not
^, *, /, Div, Mod, And
+, -, Or, Xor
=, <>, <, >, <=, >=
&&, ||

This order of precedence is similar to that used in Pascal type languages. Ambiguities are resolved by working from left to right. Parentheses are evaluated from inside to outside and equal levels are evaluated left to right.

It is highly advisable to use brackets whenever there is any possibility whatsoever that the query might not be correctly interpreted. Generous usage of brackets removes doubt and makes the resulting queries easier to read by others.

 

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

联系我们

联系原厂或当地办公室

You are reporting an issue with the following selected text
and/or image within the active document:
Altium Designer 免费试用
Altium Designer Free Trial
我们开始吧!首先,您或者您的公司已经在使用Altium Designer了吗?

如果您有任何需求,请点击这里联系获取当地办公室销售代表联系方式。.
Copyright © 2019 Altium Limited

既然您在使用Altium Designer,为何仍需要试用?

如果您有任何需求,请点击这里联系获取当地办公室销售代表联系方式。.
Copyright © 2019 Altium Limited

好的,实际上您无需下载一个试用版本。

点击下方按钮下载最新版本的Altium Designer安装包

下载Altium Designer 安装包

如果您有任何需求,请点击这里联系获取当地办公室销售代表联系方式。.
Copyright © 2019 Altium Limited

填写下方表格,获取Altium Designer最新报价。

点击[获取免费试用],并同意我们的隐私政策。您会接收到来自Altium的资讯,并允许其改变您的通知首选项。

如果您是Altium维保期内客户,您不需要下载试用版本。

如果您不是Altium维保客户,请填写下方表格免费试用。

点击[获取免费试用],并同意我们的隐私政策。您会接收到来自Altium的资讯,并允许其改变您的通知首选项。

您为何想要试用Altium Designer?

如果您有任何需求,请点击这里联系获取当地办公室销售代表联系方式。.
Copyright © 2019 Altium Limited

那您来对地方了!请填写下方表格申请试用吧。

点击[获取免费试用],并同意我们的隐私政策。您会接收到来自Altium的资讯,并允许其改变您的通知首选项。

Great News!

Valid students can get their very own 6-month Altium Designer Student License for FREE! Just fill out the form below to request your Student License today.

点击[获取免费试用],并同意我们的隐私政策。您会接收到来自Altium的资讯,并允许其改变您的通知首选项。

好的,您可以下载免费的Altium Designer Viewer查看文档,有效期6个月。

请填写下方表格申请。

点击[获取免费试用],并同意我们的隐私政策。您会接收到来自Altium的资讯,并允许其改变您的通知首选项。

好棒!创作是一件超酷的事情,我们可以为您提供完美的设计软件。

Upverter是一个社区导向的交流平台,专为您这样的创客量身定做。

点击这里看看吧!

如果您有任何需求,请点击这里联系获取当地办公室销售代表联系方式。.
Copyright © 2019 Altium Limited

好的,您可以下载免费的Altium Designer Viewer查看文档,有效期6个月。

请填写下方表格申请。

点击[获取免费试用],并同意我们的隐私政策。您会接收到来自Altium的资讯,并允许其改变您的通知首选项。