原理图放置以及编辑技巧

您正在阅读的是 22. 版本。关于最新版本,请前往 原理图放置以及编辑技巧 阅读 24 版本
 

Electronic design is the process of capturing a logical design in the schematic then representing that design as a set of objects in the PCB design space. Even for a small circuit, the schematic can include many components, each with numerous models and parameters. The PCB design space can also contain a large number of design objects that make up the board. During the course of the design process, the placement and properties of these objects need to change as you work to balance out the various design requirements.

对象放置的基本原理

栅格和光标

在“原理图编辑器”中放置对象之前,需要先设置栅格以便于放置对象。Altium Designer提供三种栅格类型:用于导航的可见栅格、用于放置的捕捉栅格和用于帮助创建连接的电气栅格。栅格是文档选项,这意味着它们随每个设计一起保存;因此,两个设计文档之间的栅格设置可能有所不同。您可以在“属性”面板的“文档选项”模式的“常规”区域对栅格进行初始设置。

当缩放比例允许栅格之间留有足够间隔时,屏幕即会出现可视栅格(以线或点的形式显示)。“捕捉栅格”是放置或移动原理图设计对象时锁定光标的栅格。由于电气栅格允许连接未对齐到栅格的部件,因此电气栅格覆盖捕捉栅格。启用“自动捕捉热点”后,当在工作区中移动电气对象时,如果对象在其可以连接的另一个电气对象的电气栅格范围内,则其将捕捉固定对象,并且屏幕将出现热点(红色十字标记)。电气栅格的设置应比当前捕捉栅格略低,否则很难隔一个捕捉栅格放置电气对象。

可以通过键盘或鼠标快捷方式快速修改或启用/禁用栅格。例如,按G键可在10 mil、50 mil和100 mil“捕捉”栅格设置之间循环切换。此外,您还可以使用“视图»栅格”子菜单执行此项操作。使用“优选设置”对话框的“原理图—栅格”页面设置“英制栅格预设”和“公制栅格预设”。

您可以在“优选设置”对话框的“原理图—图形编辑”页面的“光标”区域更改“光标”类型,以满足您的需要。例如,延伸至设计窗口边缘的90°大十字标记(“90°大光标”选项)可能有助于放置和对齐设计对象。

Altium元件在“英制”栅格上设计。请注意,如果您选择使用“公制”栅格,则元件引脚将不会落在递增的逻辑栅格上。您可以在“公制”图纸上使用“英制”栅格,若如此,您需要在“属性”面板的“文档选项”模式中设置图纸“模板”和“单位”(当原理图上没有任何选中内容时,屏幕将显示该面板)。

放置设计对象

下文概述了放置原理图设计对象的基本步骤。

  1. 通过从“放置”菜单中选择一个对象类型(例如“放置»导线”),或通过单击“活动”工具栏上的其中一个图标,选择要放置的对象类型。另外,您也可以使用放置快捷键(例如,用于放置导线的快捷键P、W)。如需放置元件(部件),您也可以单击“元件”面板中的“放置”按钮,或从“元件”面板中的可用库中选择元件名称并将其拖曳至文档中。
  2. 选中要放置的对象后,光标将变成十字交叉线(这表示您处于编辑模式),并且如果有关联,该对象将以在光标下“浮动”的形式显示。
  3. 在放置对象之前,按Tab键编辑对象的属性。上述操作将打开该特定对象的“属性”面板,您可以在该面板上更改各种选项。完成属性设置后,单击 以返回放置模式。在放置期间进行编辑的好处是具有数字标识符(例如,位号标识符)的对象将自动递增。
  4. 定位光标,然后左键单击或按“回车键”放置对象。对于复杂对象(例如,导线或多边形),您必须重复执行定位和单击操作,以放置对象的所有顶点。
Note:  The options on the Schematic - AutoFocus page of the Preferences dialog control the state of the schematic display. For example, the schematic can be configured to automatically zoom in when placing or editing connected objects or dim all wiring not related to the wire currently being placed. Other zooming and panning options are available using the shortcut keys or mouse wheel. Use the Ctrl key and scroll the wheel mouse to zoom in and out, push the wheel button down and move the mouse up to zoom in or move the mouse down to zoom out when placing. You can set up the behavior of your mouse on the System - Mouse Wheel Configuration page of the Preferences dialog.
  1. 放置对象后,您将继续处于放置模式(通过十字交叉线光标指示);因此,您可以立即放置另一个相同类型的对象。如需结束放置模式,请右键单击或按Esc键。在某些情况下(例如,放置多边形),您可能需要进行两次上述操作(一次完成放置对象,一次退出放置模式)。退出放置模式后,光标将恢复默认形状。

重新定位对象

单击并按住一个对象可以对其进行重新定位。重新定位时,光标在对象上捕捉的位置可能有别于您点击的位置。这种差异是有意制造的,您可以通过下列选项对其进行控制。请注意,由于电气对象(例如,网络标签、图表符或元件)默认启用“始终拖拽”选项,因此其与非电气对象(例如,矩形或线)的行为不同。

  • 对象中心——启用后,对于图形对象,移动光标并按住对象的几何中心。对于电气对象,如果启用了“始终拖拽”选项,则按住单击位置;如果关闭了“始终拖拽”选项,则按住几何中心。对于文本字符串,按住字符串参考点(由字符串的当前“对齐”属性设置确定)。
  • 对象电气热点——启用后,如果对象是电气对象,则按住其“热点”(“热点”是创建连接的点)。启用后,该选项会覆盖电气对象的“对象中心”选项。
  • 启用“始终拖拽”选项后,本软件会尝试保持该网络中当前定义的连接。在单击并拖动的同时按住Ctrl键可以暂时禁止“始终拖拽”。
  • 在对象移动时按G键可循环显示可用的“栅格预设”设置。该功能可以在“优选设置”对话框的“原理图—栅格”页面中配置。
  • 在对象移动时按Ctrl键可暂时禁止当前“栅格预设”。该功能在仔细调整字符串位置时能够发挥重要作用。

可重入编辑

“原理图编辑器”包含一个强大的“可重入编辑”功能。通过该功能,您可以在不退出当前执行操作的情况下,使用键盘快捷键执行第二项操作。例如,在放置部件时,按“空格键”将旋转对象,但不会中断放置过程。部件放置后,光标处将出现另一个就绪部件,并且该部件已旋转。

可重入编辑亦有助于放置需要连接到尚未放置的端口的导线。您无需退出“放置导线”模式;您只需按“放置端口”快捷键(P、R),放置端口,按Esc退出“放置端口”模式,然后将导线连接到端口即可。

在原理图文档上测量距离

“原理图编辑器”的“报告”菜单中有一个距离工具(“报告»测量距离”和Ctrl+M快捷键)。您可以使用该工具来测量原理图文档上两点间的距离。启动命令后,软件会提示您单击原理图文档上的两个点。选择两个点后,屏幕会出现一个“信息”对话框,框内显示总“距离”值,以及精确到小数点后两位的“X距离”和“Y距离”值。

测量单位由在“属性”面板的“文档选项”模式的“常规”区域中选中的原理图文档单位确定。您还可以通过切换“系统”单位(“查看»切换单位”),在“英制”和“公制”单位之间进行切换。

Properties Panel

When the active document is a schematic document (*.SchDoc) and no design object is selected in the design space, the Properties panel presents the Document Options.

The following collapsible sections contain information about the options and controls available under the panel's General tab:

The following collapsible section contains information about the options and controls available under the panel's Parameters tab:

When a design object is selected, the panel will present options specific to that object type. The following table lists the object types available for placement on a schematic sheet – click a link to access the properties page for that object.

Arc Bezier
Blanket Bus
Bus Entry Comment
Compile Mask Designator
Ellipse Graphic
Generic Component Harness Connector
Harness Connector Type Harness Entry
Net Label No ERC
Note Offsheet Connector
Parameter Parameter Set
Part Polygon
Polyline Port
Power Object Probe
Rectangle Round Rectangle
Sheet Entry Sheet Symbol
Sheet Symbol Designator Sheet Symbol Filename
Signal Harness Text Frame
Text String Wire
Pin  

Modifying Data Strings

Using Formulas

The Properties panel has the ability to modify data strings using formulas in the Schematic Editor. Formulas and expressions offer a convenient method of modifying attribute parameters of multiple selected objects to change their location or string-based values such as the Designator and Comment. This allows 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). If you want 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. For example, use of the Component Designator field within a formula should be entered as Component_Designator.

Using the Smart Edit Feature

Some parameter string fields also provide access to the Smart Edit dialog when multiple objects are selected, which is opened from the associated button.

The Properties panel offers further support for string modification through its Smart Edit feature. Select the cell entries pertaining to the attribute that you want to modify for all required objects, right-click then choose Smart Edit from the menu that appears. The Smart Edit dialog will open.

The dialog offers two methods for performing string modification accessed from the Batch Replace and Formula tabs.

Object Placement and Editing Commonality

In Altium Designer, the process of placing an object is roughly the same regardless of the object being placed. At its simplest level, the process is as follows:

  1. Select the object to be placed from one of the toolbars or the Place menu.
  2. Use the mouse to define the location of the placed object in the schematic editor design space and its size (where applicable).
  3. Right-click (or press Esc) to terminate the command and exit placement mode.

Editing Prior to Placement

The default properties for an object (those that can logically be pre-defined) can be changed at any time on the Schematic – Defaults page of the Preferences dialog. These properties will be applied when placing subsequent objects.

Use the Primitive List column to access properties for objects and edit default values as required.
Use the Primitive List column to access properties for objects and edit default values as required.

Default values for the objects are saved, by default, in the file Advsch.dft. Optionally, values can be saved in a .dft file with a different name. Controls are available to save and load .dft files, enabling you to create favorite default object value 'sets'. All settings saved in and loaded from .dft files are user-defined defaults. Should it be necessary, original default values can be brought back at any time using the Set To Defaults or Reset All options. The original default values are hard-coded.

Editing During Placement

A number of attributes are available for editing at the time an object is first placed. To access these attributes, press the Tab key while in placement mode to open the associated Properties panel. Pressing the Tab key pauses placement in order for you to make any required edits for the object.

Example Properties panel for a Net Label object. 
Example Properties panel for a Net Label object.

After edits have been made, click the design space pause button overlay ( ) to resume placement.

Attributes that are set in this manner will become the default settings for further object placement unless the Permanent option on the Schematic – Defaults page of the Preferences dialog is enabled. When this option is enabled, changes made will affect only the object being placed and subsequent objects placed during the same placement session.

Editing After Placement

Once an object has been placed, there are a number of ways in which it can be edited. These are described below.

The Associated Properties Panel or Dialog

This method of editing uses the associated Properties panel mode and dialog to modify the properties of a placed object.

After placement, the associated dialog can be accessed by:

  • Double-clicking on the placed object.
  • Placing the cursor over the object, right-clicking then choosing Properties from the context menu.

After placement, the associated mode of the Properties panel can be accessed in one of the following ways:

  • If the Properties panel is already active, select the object.
  • After selecting the object, select the Properties panel from the Panels button at the bottom right of the design space or select View » Panels » Properties from the main menus.
If the Double Click Runs Interactive Properties option is disabled (default) on the Schematic - Graphical Editing page of the Preferences dialog, when the primitive is double-clicked or you right-click on a selected primitive then choose Properties, the dialog will open. When the Double Click Runs Interactive Properties option is enabled, the Properties panel will open.
While the options are the same in the dialog and the panel, the order and placement of the options may differ slightly.
Press Ctrl+Q to toggle the units of measurement currently used in the panel/dialog between metric (mm) and imperial (mil). This only affects the display of measurements in the panel/dialog; it does not change the measurement unit specified for the sheet, which is configured in the Units setting in the Properties panel when there are no objects selected in the design space.

Graphical Editing

This method of editing allows you to select a placed object directly in the design space and change its size, shape, or location graphically. Modification of shape and/or size (where applicable) is performed through the use of editing 'handles' that appear once the object is selected.

Example editing handles for a selected Sheet Symbol object.
Example editing handles for a selected Sheet Symbol object.

选择对象后,您可以移动对象或编辑其图形特征。单击一个对象以将其选中;屏幕将显示该对象的“句柄”或顶点。如需以图形方式更改选中对象,请单击并按住编辑句柄。该点将附到光标上。将鼠标移动至新位置并释放鼠标以调整大小。单击选中对象上的任意位置以移动该对象,或按“删除”键将其删除。

移动选中对象:

  • 在按住Ctrl键的同时按箭头键,可以按照当前捕捉栅格值“推挤”选中的原理图或PCB对象。
  • 另外,在按住Ctrl+Shift键的同时按箭头键,可以按照10倍捕捉栅格值“推挤”选中对象。
  • 对于原理图对象,当前“捕捉栅格”将在状态栏上显示。可用“捕捉栅格”在“优选设置”对话框的“原理图—栅格”页面上配置。工作时,按G键可循环显示可用的栅格值。
  • 对于PCB对象,当前“捕捉栅格”将在状态栏上显示,并在“栅格编辑器”对话框中定义。按Ctrl+G键打开对话框并输入新值。
  • 您可以选择多个PCB元件并使用“重新定位选中元件”命令(“工具»元件放置»重新定位选中元件”或快捷键T、O、C),单独重新定位元件(​​按照您的选择​顺序)。您可以使用PCB面板直接在PCB上选择元件,如果启用了“交叉选择模式”(“工具”菜单),则您也可以在“原理图编辑器”中进行选择。

使用复制和粘贴

在原理图编辑器中,您可以在“原理图文档”内或彼此之间复制并粘贴对象(例如,可以将一个原理图中的元件复制到另一个“原理图文档”中)。您可以将对象复制到Windows剪贴板并将其粘贴到其他文档中;将文本从Windows剪贴板复制到原理图文本框中;或从其他应用程序(例如,Microsoft Excel)或Altium Designer的任何栅格样式控件直接复制/粘贴表格类型选择。

使用“智能粘贴”功能还可以执行更高级的复制/粘贴操作。

选择要复制的对象,单击“编辑»复制”(Ctrl+C),然后单击以在对象上设置复制参考点。该参考点将用于在粘贴过程中准确定位对象。仅在“优选设置”对话框的“原理图—图形编辑”页面上启用“剪贴板参考”选项时,软件才会提示您单击设置参考点。

粘贴复制的元件对象时,如果在“优选设置”对话框的“原理图—图形编辑”页面上启用了“粘贴时重置部件位号标识符”选项,则对象的位号标识符将被重置。

编辑群组对象

A group object is any set of primitives that has been defined to behave as an object. For example, a component on a schematic is a collection of drawing objects, strings, parameters, pins, and references to models. The primitive objects that belong to a group object are sometimes referred to as the child objects and the group object is their parent object.

下面我们将举例说明典型的群组对象编辑。您的设计包含多个电容器。目前,电压被指定为元件注释字符串的一部分。您需要对其进行更改,将电压指定为元件参数,并使该参数在原理图上可见。

我们需要执行的具体步骤(详细描述如下):

  1. 选择值为100uF 16V的电容。
  2. 将他们的注释更改为100uF(删除16V文本)。
  3. 为元件添加一个名为“电压”的新参数,参数值为“16V”。
  4. 更改该参数的可见性,使其在原理图上显示。

上述编辑操作看似复杂,实则非常简单。

第1步:选择电容器

如需选择所有100uF 16V电容器,请右键单击其中一个电容器的元件符号,然后从上下文菜单中选择“查找相似对象”。

我们将使用前面示例中介绍的方法,但区别是,此次您需要匹配具有相同“注释”和相同“当前封装”的元件,具体如上图所示。

请注意,我们还可以匹配具有以字母C开头的位号标识符的元件(通过将“元件位号标识符”更改为C*,然后单击“确定”以选择匹配的电容器)。

第2步:更改注释字符串

After clicking OK, the Properties panel opens (if the Open Properties option in the Find Similar Objects dialog was enabled). Behind it will be the schematic sheet displaying the matching objects selected on that sheet. If the Zoom Matching and Mask Matching options were enabled, the view will be zoomed and all the objects that did not match are faded or masked out. 单击“确定”后,“属性”面板将打开(如果启用了“查找相似对象”对话框中的“打开属性”选项)。面板后方是原理图,图中显示了该图纸上选中的匹配对象。如果启用了“缩放匹配项”和“屏蔽匹配项”选项,则视图将被缩放,所有不匹配的对象将被渐隐或屏蔽。

You can check the status line at the bottom of the Properties panel to see if the same capacitors exist on other sheets.  您可以检查“属性”面板底部的状态行,以查看其他图纸上是否存在相同电容器。

To change the comment string, delete 16V from the string then press Enter to apply the change.  如需更改注释字符串,请从字符串中删除16V,然后按“回车键”应用变更。

Step 3. Adding a New Parameter to the Component

The next change that we need to make is to add a new parameter. To do this, click Add in the Parameters region of the Properties panel in Component mode then select Parameter from the drop-down. A Parameter 1 entry will be added to the grid in the region. Enter the new parameter Name and Value

Click   to delete a selected parameter.

Step 4. Setting the Voltage Parameter to be Visible

The last step is to make the new Voltage parameter visible. Click the   icon to make the parameter visible (displays as ).

We have now updated the comment string for all 100uF capacitors. We have also added a new parameter called Voltage, set its value to 16V, and made this parameter visible.

Working with Components

A component within a library represents the physical device that is placed on the actual printed circuit board. On a schematic sheet, a component is represented by its schematic symbol model. Each component can contain one or more parts.

Managing Footprints Across the Entire Design

Altium Designer's Schematic Editor includes a powerful Footprint Manager. Launched from the Schematic Editor's Tools menu (Tools » Footprint Manager), the Footprint Manager lets you review all the footprints associated with every component in the entire project. Multi-select support makes it easy to edit the footprint assignment for multiple components, change how the footprint is linked, or change the current footprint assignment for components that have multiple footprints assigned. Design changes are applied through the ECO system, updating both the schematic and the PCB if required.

Working with Design Object Parameters

Parameters are general purpose text strings that are child objects of a parent object. They identify and add additional information to that parent object and are accessed directly in the Properties panel when selected in a schematic sheet.

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

您可以使用的功能取决于您的 Altium 订阅级别。如果您在软件中找不到某个功能,请联系 Altium 的销售人员以获取更多信息。

Content