Altium Designer Documentation

PCB Inspector

Modified by Susan Riege on Apr 11, 2017
此文档页面引用了不再受支持的产品 Altium Vault, Altium Vault 及其组件管理功能已迁移到 Altium Concord Pro


Select PCB objects to populate the PCB Inspector panel with objects to be viewed or edited.

Summary

The PCB Inspector panel enables you to interrogate and edit the properties of one or more design objects in the active PCB document. When used in conjunction with appropriate filtering, the panel can be used to make changes to multiple objects of the same kind, from one convenient location. The panel is a natural partner to the PCB Filter panel.

Panel access

Access the PCB Inspector panel by:

  • Clicking the PCB button at the bottom-right of Altium Designer when the PCB Editor is active then selecting the PCB Inspector entry from the pop-up menu.
  • Alternatively, you can access the panel through the main menu by selecting View » Workspace Panels » PCB » PCB Inspector.
Panels can be configured to be floating in the editor space or docked to sides of the screen. If the PCB Inspector panel is currently in a group of docked panels, use the PCB Inspector tab located at the bottom of the panels to bring it to the front.

Defining panel display scope

The PCB Inspector panel allows you to define which objects are displayed in the panel (the display scope) via filtering controls. This can be accessed using the underlined control at the top of the panel.

You may have a large quantity of objects selected in the workspace that are of differing type. Out of all such objects, you may wish to edit the properties of certain object types only, without losing or having to alter your selection.

Use the Include link context menu to choose which object types to include in the panel for display and editing - either all objects or specific objects. To choose one or more specific object types, enable the Display only option and then enable the check box next to the required object(s) in the list beneath. The list will only contain those object types currently selected in the main workspace.

When specific object types have been enabled for display, the control will reflect the choice by listing the enabled types, separated by commas.

Information will only appear in the PCB Inspector panel when one or more objects have been selected in the design editor window.

Inspecting object attributes

The main regions of the PCB Inspector panel show sections of attributes for objects falling under the defined display scope.

Clicking on a single object in the PCB design editor window will select that object and display its associated attributes in the PCB Inspector panel. Information is displayed under the following common collapsible sections:

Kind

This panel section contains one entry only, relating to the kind of design object that is being 'inspected'. For example, clicking on a component in the workspace will display the entry Component, clicking on a component designator will display the entry Text, and so on.

Object Specific

This section contains attributes specific to the object being inspected and which are not graphical attributes. For example, selecting a component will display the following attributes that are specific to a component:

  • Layer
  • Name (the component designator)
  • Component Comment
  • Lock Strings
  • Footprint
  • Channel Offset
  • etc...

Other selected objects will have different attributes displayed. For example, selecting a pad object will display attributes including Pad Shape/Size, Solder Mask Tenting and Electrical Type.

When multiple components are selected, common attributes that have differing values between objects will be displayed as <...>.

Graphical

This section of the panel contains graphical attributes of the selected object. Attributes here may include the location of the object, its rotation and dimensions, and whether it is locked.

Parameters

This section of the panel lists the string Parameters assigned to the currently selected component.

The Parameter-Value pairs are established in the Schematic component, then transferred to the matching PCB component footprint when the PCB is updated from the Schematic (Design » Update PCB Document...). The PCB component Parameters may be used for Queries, Design Rules, Scripts and applied as Special Strings.

Note that the listed PCB Component Parameters are read-only and cannot be edited in the Inspector panel or PCB Editor. To change a Parameter or its Value, edit the matching component Parameter in the Schematic Editor and update the changes to the PCB.

Editing object attributes

The attributes of a selected object can be edited through the relevant entry in the panel. The change will take effect once you click outside of the field being edited. This is one of the advantages of using the panel to edit object properties – the panel will remain open, allowing you to change attribute after attribute, as needed, without having to close and reopen an object's properties dialog each time.

If the object being inspected has child objects associated with it, they will appear in blue in the Object Specific section (rather like a hyperlink). When the Inspector is set to Include all types of objects, the child objects themselves can be edited in the panel.

Click on these entries to display the attributes pertaining specifically to these child objects, as illustrated in the image below (where two LED components are selected). For each child object, a link will be available back to the parent object – in the below case, the Component link returns the panel to the parent (component) object.


A child object will appear as a link, which allows the child object attributes to be inspected and edited.

A main advantage of using the panel for editing is that multiple objects can be edited from the one place, without having to edit, through dialogs, one object at a time. Selected objects can be of the same or differing type. Those attributes that are common to all objects in the selection will be displayed in the panel. Common attributes that have differing values between objects will be displayed as <...>. As the attributes are edited as required, the changes made will be conveyed instantly to each object in the selection.

Filtering can be used to target a specific group of objects in the design and the PCB Inspector panel then used to edit the attributes for these multiple objects, directly.

With multiple components selected in the workspace, you can drill-down to make changes to Designator or Comment and the changes will be made to all components in the selection. Using the hyperlink entries you can pass back and forth between parent and child objects, without losing the selection.

Editing attributes with numeric values

For a numerical-based attribute of a selected object, the simplest modification to that attribute's value is made by typing a new value to replace the existing one. The plus and minus operators can be used to specify the value's sign. A value entered without a specified sign is assumed to be positive. Therefore entering 20 is the same as entering +20.

A value can be entered with specific units of measurement and the software will convert the value into the current units defined for the document. If no units are specified, the default units set for the document will be used.

Batch replacement of string-based attributes

There are occasions when it's desirable to modify a string-based attribute that is common to multiple selected objects. For example to rename the designators of selected header components from P1, P2, P3, etc, to HDR1, HDR2, HDR3, etc. To perform this type of batch replacement, the use of string substitution syntax is supported in the panel.

A string substitution entry is enclosed in braces and has the form: {oldstring=newstring}

An entry of this form causes all occurrences of 'oldstring' found in the attribute's value to be replaced with 'newstring'. In the case of the designators, you would enter {P=HDR) in the value field for the Name attribute.

Should you wish to replace multiple, differing string portions in the same target string, type multiple substitution entries, with each enclosed in its own set of curly braces. For example, consider the following free text strings placed on the PCB of a design featuring four USB ports and connector headers, where each port supports the USB2 standard:
HDRA_2
HDRB_2
HDRC_2
HDRD_2

If the design has now been revised to support the USB3 standard and the name prefix needs to be changed to USB- for clarity, batch string substitution can be used to modify the free strings to USB-A_3, USB-B_3, etc in one action.

With all relevant strings selected and the PCB Inspector Panel open, the String attribute value would be ented as {HRD=USB-} (2=3}. The software takes this entry and effectively performs a batch substitution – substituting for the first expression, then the second.

Smart Editing of string-based attributes

The PCB Inspector panel offers further support for string modification through its Smart Edit feature. Simply click on a shared attribute of the selected objects, whose value is a string. A  button will become available at the far right of the cell. Click on this button to access the Smart Edit dialog.


The Smart Edit dialog offers a streamlined method for performing multiple string modifications,
accessed from the Batch Replace tab.

The Batch Replace tab provides simple straightforward substitution, along the lines of the string substitution discussed previously (but without having to enter the curly braces). Click in the From field and enter the portion of the current string that you wish to replace. Click in the To field and enter the string to be used as the replacement. The familiar string substitution syntax is displayed at the bottom of the tab.

For example, consider the designators of three header components that currently have the prefix P that needs to be changed HDR. In this case, select the components, click on the Name attribute in the panel and access the Smart Edit dialog. Then on the Batch Replace tab, enter P in the From field and HDR in the To field (the replacement string is therefore {P=HDR}). After clicking OK, the designators will be modified accordingly.

As with basic string substitution, the Batch Replace tab provides for replacement of multiple, differing string portions in the same target string. Enter the various substitutions as distinct From-To entries. Consider the previous USB Port example (see Batch replacement of string-based attributes), where strings of the form HDRx_2 need to be changed to USB-x_3. In this case, you would enter two distinct substitution entries on the Batch Replace tab.

The  Formula tab provides for more advanced modification, allowing you to apply a specific expression to the selected string objects. The expression can include any built-in arithmetic operators and functions that apply to strings (found in Pascal). Once again, if you wish to use the current value for the attribute as part of the expression, you will need to make reference to this original value, either by using the full name of the attribute, or by using the exclamation character (the supported substitute for the name of the attribute currently being modified). When using attribute names, if any names contain spaces, these must be replaced by the underscore character. So, for example, use of the Component Comment field within a formula should be entered as Component_Comment.

Consider for example three selected memory components specified in a design, with designators U1, U3 and U5. You might want to extend the designators of these components by including some indication of their role. Using the addition operator, you could write an expression to add to the existing string value of the Name attribute. This would take the existing (original) string value and concatenate it with a specified new string, as illustrated below:
Name + '_MEM'

...or, in shortened form:
! + '_MEM'

Note that the spaces are optional. When you press the Enter key the designators of the components will be updated to U1_MEM, U3_MEM and U5_MEM respectively.

To illustrate the use of string-based functions consider the Copy function, which can be used to take a portion of an original string and place it within an expression to create a new string. Take again the Comms Port example (see Batch replacement of string-based attributes), where strings of the form CommPortx_8 need to be changed to IOPortx_32. In this case you could select the four free string objects, access the Smart Edit dialog for the String attribute and write the following expression on the Formula tab:
'IO' + Copy(String,5,6) + '32'

...or, in shortened form:
'IO' + Copy(!,5,6) + '32'

The format of the Copy function is Copy(AttributeName, StartIndex, Length). AttributeName is the full name of the string-based attribute you wish to copy, as it appears in the panel. If it is the attribute currently being modified, the short-form substitute character – ! – can be used. StartIndex is the position within the string at which to start the copy. Length determines how many characters of the string, starting from and including the StartIndex, are to be copied.

As an example, let's consider the Designator of a component is AUX_LED1. In the panel, this attribute is referred to as String. So use of the Copy function might be Copy(String,5,4), the AttributeName is String. The StartIndex of 5 means fifth character in the string from the left, so 'L'. And the Length of 4 means copying four characters starting with that 'L'. The result of the function is therefore LED1.

Tips

  • Pressing the F11 key will toggle the visibility of the panel in the workspace.
  • Information will only appear in the panel when either:
      1) One or more objects have been selected in the design editor window, or;
      2) Object entries are selected in the PCB List panel.
  • With multiple components selected in the workspace, you can drill-down to make changes to Designator or Comment and the changes will be made to all components in the selection. Using the hyperlink entries you can pass back and forth between parent and child objects, without losing the selection.
  • You can use the Tab and Shift+Tab keyboard shortcuts to pass down and up the list of attributes in the panel respectively. Alternatively, the arrow keys can also be used.
  • When applying a filter using the PCB Filter panel, the attributes for the resulting filtered objects will only be displayed in the PCB Inspector panel if the Select option - located in the Objects passing the filter area of the panel - is enabled prior to application of the filter.
Found an issue with this document? Highlight the area, then use Ctrl+Enter to report it.

联系我们

联系原厂或当地办公室

We're sorry to hear the article wasn't helpful to you.
Could you take a moment to tell us why?
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的资讯,并允许其改变您的通知首选项。