创建PCB封装

您正在阅读的是 17.1. 版本。关于最新版本,请前往 创建PCB封装 阅读 25 版本

 

Altium hosts a huge array of ready-made PCB Components both in the Vault as well as in several integrated and discrete libraries available through AltiumLive. However, even with this rich set of resources, it is likely that at some point in the designer's career they will need to create a custom PCB Component. PCB Component Footprints are created in the PCB Library editor using the same set of primitive objects available in the PCB editor. In addition to footprints, company logos, fabrication definitions and other objects required during board design can also be saved as PCB Components.

The real-world component that gets mounted on the board is represented as a schematic symbol during design capture, and as a PCB footprint for board design. Altium Designer components can be:

  • created in and placed from local libraries, or
  • placed directly from the Altium Content Vault, a globally accessible component storage system that contains thousands of components, each with a symbol, footprint, component parameters and links to suppliers.

Manually Creating a Footprint

2D and 3D views of a footprint for a joystick component. The 3D image shows the imported STEP model for the component, note
the pads and component overlay can be seen below the STEP model.

The typical sequence for manually creating a component footprint is:

  1. Footprints should be built around the workspace reference point at the center of the PCBLIB editor. Use the J, R shortcut keys to jump directly to the reference point. If you've forgotten to move to the reference point before beginning to build your footprint, you can bring the reference pad to your footprint using the Edit  » Set Reference sub-menu commands.
  2. Place the pads (Place » Pad) according to the component requirements. After running the place Pad command but prior to placing the first pad, press the Tab key to open the Pad dialog and define all the pad properties, including the pad Designator, Size and Shape, Layer, and Hole Size (for a thru-hole pad). The designator automatically increments for subsequent pad placements. For a surface mount pad, set the Layer to Top Layer. For a thru-hole pad, set the Layer to Multi-layer.
Some care should be exercised when designating pads as it is this property that Altium Designer uses when mapping from pin numbers on the Schematic Symbol.
  1. To ensure accurate placement of the pads, consider setting up a grid specifically for the task. Use the Ctrl+G shortcut keys to open the Grid Editor dialog and the Q key to change the grid from Imperial to Metric or vice versa.
  2. To accurately place a pad while moving it with the mouse, use the keyboard arrow keys to move the cursor in current grid increments. Additionally, holding Shift will move in steps of 10 times the grid. The current X, Y location is displayed on the Status bar, and also in the Heads Up display. The Heads Up display contains both the location and the delta from the last click location to the current cursor location.  Use the Shift+H shortcut to toggle the Heads Up display on and off. Alternatively, double-click to edit a placed pad and enter the required X and Y locations directly in the Pad dialog.
  3. To check a distance between two points in the workspace, use the Reports » Measure Distance command which is also available through the Ctrl+M shortcut keys. Follow the prompts on the Status bar.
  4. Pad-specific attributes, such as solder mask and paste mask are automatically calculated based on the pad dimensions and applicable mask design rules. While mask settings can be defined manually for each pad doing this makes it difficult to modify these settings later during the board design process, typically this is only done when it is not possible to target the pads by design rules. Note that rules are defined in the PCB editor, during board design.
  5. Use tracks, arcs and other primitive objects to define the component outline on the Silkscreen layer.
  6. Place tracks and other primitive objects on a mechanical layer to define extra mechanical detail, such as a placement courtyard. Mechanical layers are general-purpose layers, the designer should allocate the function of these layers and use them consistently across their footprints.
  7. Place 3D Body objects to define the 3 dimensional shape of the component that fits on the footprint. Multiple 3D Body objects can be placed to build up the shape, or a STEP format 3D component model can be imported into a 3D Body object.
  8. The designator and comment strings are automatically added to the footprint’s Overlay layer during placement into the main PCB workspace. Additional Designator and Comment strings can be included by placing the .Designator and .Comment special strings on a mechanical layer.
    When placing designator and comment strings, designers need to define a Layer Pair in the PCB editor. This ensures that the strings will be tied to the side of the board that the component is mounted on, and must flip to the other side of the board when the component is flipped. For more information on this, please see the Handling Special Layer-specific Requirements section below.
  9. Rename the completed footprint by double-clicking on its name in the Components list in the PCB Library panel. Component names can be up to 255 characters.
With AD16 a new library type for pads and vias was implemented. For a standardized pad / via definition across all footprints the PAD/Vialibrary (*.PvLiB) can be used for Pad/Via placement.  

Creating a Component using the IPC Compliant Footprint Wizard

The IPC Compliant Footprint Wizard creates IPC-compliant component footprints. Rather than working directly from footprint dimensions (as the Component Wizard does), the IPC Compliant Footprint Wizard uses dimensional information from the component itself, and then calculates suitable pad and other footprint properties in accordance with the algorithms released by the IPC.

   One of the new supported packages in the IPC Compliant Footprint Wizard is the DPAK (Transistor Outline).

  • Select the Tools » IPC Compliant Footprint Wizard command to run the IPC Compliant Footprint Wizard.
  • The wizard can create the following footprint type: BGA, BQFP, CAPAE, CFP, CHIP Array, DFN , CHIP, CQFP, DPAK, LCC, LGA, MELF, MOLDED, PLCC, PQFP,PQFP, PSON, QFN, QFN-2ROW, SODFL, SOIC, SON, SOJ, SOP/TSOP, SOT143/343, SOT223, SOT23, SOT89, and WIRE WOUND.
  • The IPC Compliant Footprint Wizard uses dimensional information from the component itself in accordance with the standards released by the IPC.

Some of the IPC Compliant Footprint Wizard features include:

  • Overall packaging dimensions, pin information, heel spacing, solder fillets and tolerances can be entered and immediately viewed.
  • Mechanical dimensions such as Courtyard, Assembly, and Component (3D) Body Information can be entered.
  • Wizard is re-entrant and allows reviewing and making adjustments easy. Previews of the footprint are shown at every stage.
  • The finish button can be pressed at any stage to generate the currently previewed footprint.
If you click Finish before completing the entire Wizard, the footprint will be created using the system defaults for the component type you selected.

Creating a Component Using the IPC Footprint Batch Generator

The IPC Footprint Batch Generator can be used to generate multiple footprints at multiple density levels. The generator reads the dimensional data of electronic components from an Excel spreadsheet or comma delimited file and then applies the IPC equations to build IPC compliant footprints. Support for the IPC Footprints Batch Generator includes:

  • Package type blank template files are included in the \Templates folder in the Altium Designer installation.
  • Package input files need can contain the information for one or more footprints of a single package type, and can be either an Excel or comma-delimited (CSV) format file.


The IPC Footprints Batch Generator has options to either create all the footprints in the open PCB footprint library, or generate a single library based on either an input file or footprint name.

Creating a Component using the Component Wizard

The PCB Library Editor includes a Component Wizard. This Wizard allows you to select from various package types, fill in appropriate information and it will then build the component footprint for you. Note that in the Component Wizard the designer enters the sizes required for the pads and component overlay.

To launch the Component Wizard, right-click on the Components section of the PCB Library panel and select Component Wizard, or select the Tools » Component Wizard command.

Including a 3D Model of the Component

A 3D representation of the component can be included in the footprint.

The following 3D model formats can be used in Altium Designer:

  • Altium Designer 3D Body Objects, place these to build up the required component shape.
  • STEP models - *.Stp and *.Step
  • SolidWorks parts - *.SldPrt
  • Parasolid Models - *.x_t and *.x_b

The shape can be created by placing a number of Altium designer 3D Body objects to build up the shape, by placing one 3D Body object and importing a 3D model into it, or a combination of both. 

  • Allocate a mechanical layer for 3D Body objects, then during placement ensure that this layer is selected in the 3D Body dialog.
The 3D Body dialog can also be used to reference a #3D model stored in an Altium Vault. For more information, see the Managed 3D Models in an Altium Vault page.
  • Building a component shape from 3D Body objects is generally easier with the display in 2D mode. Available shapes for 3D Body objects include extruded, cylindrical or spherical.
  • To switch the PCB Library editor between 2D and 3D display modes, press the 2 and 3 hotkey shortcuts.
  • 3D component models can be downloaded from component manufacturer websites, or shared resource sites such as www.3dContentCentral.com.
  • 3D models are easier to place with the display in 3D mode. To place a Generic 3D model first place a 3D Body object, when the 3D Body dialog opens set the 3D Model Type to Generic 3D Model, select the Embedded option, then click the Load from File button to locate the 3D model file.
  • When a 3D model is clicked and held to be moved, it will be held by the nearest vertex belonging to the 3D Body object the 3D model is embedded in, or by a snap point defined on the 3D model. Snap points can be defined in the 3D Body dialog, or by using the commands in the Tools » 3D Body Placement » Add Snap Points from Vertices command. This command is interactive, watch the Status bar for prompts. Note that the command has 2 modes, the default is to add a Snap Point at the Vertex chosen by the user. The second mode is enabled by pressing the Spacebar after launching the command, in this mode the designer is prompted to click on 2 points, the software then calculates and positions the Snap Point at the mid-point of the 2 clicks.
  • Use the standard Windows shortcuts to zoom and pan when the PCB Library editor is in 3D display mode. As in 2D mode, click and hold the right-mouse button to pan or slide the document. To rotate the view hold the Shift key, then click and hold the right-mouse button. Alternatively use a 3D mouse, such as the Space Navigator™.
  • The Inspector and List panels are good for editing 3D Body object properties, such as dimension, rotation and color. These panels allow the designer to easily edit a value and immediately see the impact – ideal for tasks such as rotating a 3D model.
  • 3D model support is not limited to components, it can also be used to import other mechanical detail such as a bracket or the finished enclosure. Import the enclosure directly into the PCB editor, if it is linked rather than embedded then when a change is made to the linked 3D model a warning dialog pops up in the PCB editor, offering to reload the 3D model.

The same footprint, on the left the physical component has been created from a set of 3D Body objects, on the right a STEP model has been imported.
The same footprint, on the left the physical component has been created from a set of 3D Body objects, on the right a STEP model has been imported.

Note that Altium designer’s 3D view mode requires a graphics card that supports Microsoft DirectX 9 (or better), with Shader Model 3 (or better).

Creating Footprints with Irregular Shapes

Some footprints require pads that have an irregular shape. This can be done using any of the design objects available in the PCB Library Editor, but when doing this, there is an important factor that must be kept in mind.


Create irregular shaped pads by placing multiple objects.

Altium Designer automatically adds solder and paste masks to pad objects based on their shape. Default expansion values are defined by design rules by default, although they can also be specified by the Pad Primitive type settings contained on the PCB Editor » Defaults page of the Preferences dialog. These settings can be overridden during placement or after placement through the Pad dialog.

For more information about using design rules to define default expansion values, see the Mask Rules pages under the Design Rules Reference section.


Specifying default pad primitive attributes; Paste and Solder Mask Expansion settings have been highlighted on the right.

Creating a Custom Pad Shape

If only pad objects have been used to build up an irregular shape, then the matching irregular mask shape will be generated correctly. But if the irregular shape was built up using other objects such as lines (tracks), fills, regions, pads, vias, or arcs, the solder and paste masks will need to be handled manually.

Manually applying solder and paste mask expansions can be achieved by placing lines (tracks), fills, regions, or arc primitives on the corresponding solder or paste mask layer. Designers can then make use of the Solder and Paste Mask Expansion settings within the primitives used to create the irregular pad shape.

A pad must be used within the shape so that the software knows where to attach the net.

 The Track dialog with Mask Expansion settings highlighted.
The Track dialog with Mask Expansion settings highlighted.

The Track dialog is shown above. Highlighted are the Solder and Paste Mask Expansion settings. The options available in their drop down list are:

  • No Mask: No Expansion Mask is included in the object.
  • Expansion value from rules: Expansion values are taken from the corresponding Solder or Paste Mask Expansion rule defined in the Mask section of the PCB Rules and Constraints Editor dialog.
  • Specify expansion value (value): Expansion geometries will be calculated as an offset (user-specified) from the primitive's perimeter.

Note that if the mask opening requirements are not a simple expansion or contraction of the copper shape, it will not be possible to use a calculated mask. In this case suitable design objects will need to be placed on the required Mask layer.

Displaying Solder / Paste Masks

To check that solder and/or paste masks have been correctly defined in the PCB Library Editor, open the View Configurations dialog (Tools » Layers & Colors or L hotkey) and enable the Show option for each mask layer.

The image under the Footprints with Multiple Pads Connected to the Same Pin section below shows a PCB footprint with a purple (color of the Top Solder Mask layer) border that appears around the edge of each pad. This represents the edge of the solder mask shape protruding by the expansion amount from under the pad.

To quickly walk through layers, use the Single Layer Mode (Shift+S) in combination with Ctrl+Shift+Wheelroll

Managing Components with Routing Primitives

When a design is transferred, the footprint specified in each component is extracted from the available libraries and placed on the board. Then each pad in the footprint has its net property set to the name of the net connected to that component pin in the schematic. All objects touching a pad connect to the same net as the pad.

The PCB Editor includes a comprehensive net management tool. To launch it select Design » Net list » Configure Physical Nets from the menus. Click the Menu button for a menu of options, and click the New Net Name region to select the net to assign to the unassigned primitives.


Update the net name on unnamed footprint primitives in the Configure Physical Nets dialog.

Footprints with Multiple Pads Connected to the Same Pin

The footprint shown below, a SOT223 transistor, has multiple pads that are connected to the same logical schematic component pin - Pin 2. To make this connection, two pads have been added with the same designator - '2.' When the Design » Update PCB command is used in the Schematic Editor to transfer design information to the PCB, the resulting synchronization will show the connection lines going to both pads in the PCB Editor.


SOT223 footprint showing two pads with a designator of 2.

Handling Special Solder Mask Requirements

The footprint shown below is the contact set for a push button switch implemented directly in the copper on the surface layer of the PCB.


Printed push button footprint, designed by placing pads, lines and arcs.

A rubber switchpad overlay is placed on top of the PCB, with a small captive carbon button that contacts both sets of fingers in the footprint when the button is pressed to create the electrical connectivity. For this to happen, both sets of fingers must not be covered by the solder mask. The circular solder mask opening has been achieved by placing an arc whose width is equal to or greater than the arc radius, resulting in the solid circle shown behind the two sets of fingers. Each set of copper fingers has been defined by an arc, horizontal lines, and a pad. The pads are required to define the points of connectivity. Manually placed solder mask definitions will be automatically transferred to the bottom side solder mask layer when the component is placed on the bottom of the board.

Designator and Comment Strings

Default Designator and Comment Strings

When a footprint is placed on a board it is given a designator and comment based on information extracted from the Schematic view of the design. Placeholders for the designator and comment strings do not need to manually defined since they are added automatically when the footprint is placed on a board. The locations of these strings is determined by the designator and comment string Autoposition options in the component's Properties dialog. The default position and size of Designator and Comment strings is controlled by settings contained in the Component primitive in the PCB Editor - Defaults page of the Preferences dialog.

Additional Designator and Comment Strings

There may be situations where additional copies of the designator or comment strings are required - for example the assembly house might want a detailed assembly drawing with the designator shown within each component outline, while in house company requirements stipulate the designator to be located just above the component on the component overlay on the final PCB. This requirement for an additional designator can be achieved by including the .Designator special string in the footprint. A .Comment special string is also available for stipulating the location of the comment string on alternate layers or locations.

To cater for the assembly house's requirements, the .Designator string would be placed on a mechanical layer in the library editor and printouts that included this layer could then be generated as part of the design assembly instructions.

The display of Special Strings in the PCB (Library) Editor requires that the Convert Special Strings option has been enabled on the View Options tab of the View Configurations dialog (Design » Board Layers & Colors).

Handling Special Layer-specific Requirements

There are a number of special requirements a PCB component can have, such as needing a glue dot, or a peelable solder mask definition. Many of these special requirements will be tied to the side of the board that the component is mounted on, and must flip to the other side of the board when the component is flipped.

Rather than including a large number of special purpose layers that may rarely be used, Altium Designer's PCB editor supports this requirement through a feature called layer pairs . A layer pair is simply two mechanical layers that have been defined as a pair. Whenever a component is flipped from one side of the board to the other, any objects on a paired mechanical layer are flipped to the other mechanical layer in that pair.

Layer Pairing needs to be defined before the component gets flipped. If the pairing is defined after the component has moved to the bottom side, the mechanical contents will flip but stay on their original layer. If you forget to create layer pairs before flipping, you can update from library to refresh the instance of the component placed on the board.


Layer pairs are defined in the PCB Editor from the Layer Pairs button within the View Configurations dialog.

Using this approach, an arbitrary mechanical layer would be defined as the glue dot layer (or other special requirement) and any shapes necessary for defining the position and size of component glue dots would we specified on this layer in the PCB Library Editor.

Layer pairing cannot be defined within the PCB Library Editor itself; only within the PCB Editor. So once the component is placed on the PCB, the layer pairing for that design must be defined from the Layer Pairs button in the View Configurations dialog (Design » Board Layers & Colors).

The Names of Mechanical Layers can be edited directly from the View Configurations dialog by clicking once on the target layer to select it, and clicking again (or pressing F2) to enter edit mode.

Adding Height to a PCB Footprint

At the simplest level of 3D representation, height information can be added to a PCB Component. To do this, double-click on the footprint in the Components list in the PCB Library panel to display the PCB Library Components dialog. Enter the recommended height for the component in the Height field.


Simplistic Height definition for a PCB Component.

Height design rules can be defined during board design (select Design » Rules in the PCB Editor), typically testing for maximum component height in a class of components, or within a room definition.

A far better option for defining Height information would be to attach 3D Bodies and/or a STEP model to the PCB Component. Details of this will be discussed in another module.

Adding Footprints from Other Sources

PCB Components can be copied from other PCB Libraries and then renamed and modified within the destination library to match the specifications required. There are a number of ways to execute this copy:

  • Select placed footprint(s) in a PCB document and copy (Edit » Copy) and paste them into an open PCB library using Edit » Paste Component, or
  • Select Edit » Copy Component when the footprint to be copied is active in the PCB Library Editor, change to the open PCB destination library and select Edit » Paste Component, or
  • Select one or more footprints in the list in the panel using the standard Shift+Click or Ctrl+Click, right-click and choose Copy, switch to the target library, right-click in the list of footprint names and choose Paste.

Validating Component Footprints

There are a series of reports that designers can run to check that footprints have been created correctly as well as identifying which components are in the current PCB library.

The Component Rule Check report (Reports » Component Rule Check) is useful for validating all components in the current PCB library by testing for duplicate primitives, missing pad designators, floating copper and inappropriate component references.


Verify the footprints in the library before using them in a design.

Validating PCB Libraries within an Integrated Library

Including PCB Libraries as part of a Integrated Library Package provides an additional layer of validation because it allows the Design Compiler to examine the Schematic and PCB models together. This, of course, requires that a Schematic Library that matches the PCB Library exists however assuming this is the case, a range of additional checks are possible.

   Validating a PCB Library as part of an Integrated Library Package adds an extra layer of error checking.

Updating a PCB Footprint

Updating a PCB Footprint can be done in either of two ways: either by "Pushing" the PCB from the PCB Library or by "Pulling: from the PCB Editor. Pushing a PCB Footprint update takes a selected footprint(s) from the PCB Library and uses it to update all open PCB documents containing that footprint. This first method is the best option when a complete replacement is desired. The second option, pulling, allows designers to review all the differences between the existing footprint and the footprint in the library before the update is performed. As well, designers can select which objects are to be updated from the library. This second method is the best option when you need to figure out exactly what has changed between the footprint on the board and the footprint in the library.

Pushing Footprint Updates from the PCB Library

From the PCBLIB Editor, use the Tools » Update PCB with Current Footprint or Tools » Update PCB With All Footprints command. From the PCB Library panel, right-click in the Components region of the PCB Library panel and select Update PCB with [Component] or Update PCB with All.  Running these commands opens the Component(s) Update Options dialog, from which you can select the primitives/attributes to be updated.

The selected updates will be pushed to correlating footprints in all open PCB documents.

Pulling Footprint Updates from the PCB Editor

From the PCB editor, use the Tools » Update From PCB Libraries command, which in turn opens the Update from PCB Libraries - Options and the Update from PCB Libraries dialogs.

This dialog allows designers review differences between the footprint on the board and the footprint in the library.
This dialog allows designers review differences between the footprint on the board and the footprint in the library.

Releasing Completed PCB Footprints to a Vault

Full article: Release a PCB 2D-3D Model to an Altium Vault

After completing the creation of a PCB Footprint, the footprint and any additional 3D model/body info (all of which come together to create the component model) can be released to and stored in an Altium Vault. A vault-based component gathers together all information needed to represent that component across all design domains, within a single entity. It could therefore be thought of as a container in this respect. A 'bucket' into which all domain models and parametric information is stored.

In terms of its representation in the various domains, a vault-based component doesn't contain the domain models themselves, but rather links to these models. These links are specified on the design-side, as part of the source component definition – from which the released Component Item is generated. As such, before you can delve into the process of defining and releasing vault-based components, you must first ensure that all the domain models themselves have been created and released.

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

软件的功能取决于您购买的Altium产品级别。您可以比较Altium Designer软件订阅的各个级别中包含的功能,以及通过Altium 365平台提供的应用程序所能实现的功能。

如果您在软件中找不到某个讨论过的功能,请联系Altium销售团队以获取更多信息。

Content