Обзор создания библиотечных компонентов

Вы просматриваете версию 22. Для самой новой информации, перейдите на страницу Обзор создания библиотечных компонентов для версии 21
Translation is available for Altium Designer 20.0: Go to the page
 
This document outlines the creation of schematic components and PCB footprints (including adding 3D body objects) using the schematic and PCB library editors. A glossary of terms used in this document is included as an appendix.

The following topics are covered:

  • Creating new libraries.
  • Creating schematic components with single and multiple parts.
  • Checking the components using schematic library editor reports.
  • Creating PCB component footprints manually and using the Footprint Wizard.
  • Handling other special footprint requirements, including irregular pad shapes.
  • Including three-dimensional component detail (3D bodies).
  • Checking the component footprints using PCB library editor reports.
  • Creating an integrated library of the new components and models.

This information assumes you have a working knowledge of the schematic and PCB editor environments and are familiar with placing and editing components. 

Schematic Libraries, Models and Integrated Libraries

Schematic component symbols are created in schematic libraries (*.SchLib). The components in these libraries then reference footprints and other models defined in separate footprint libraries and model files. As a designer, you can place components from these discrete component libraries or you can compile the symbol libraries, footprint libraries and model files into integrated libraries (*.IntLib).

The advantages of integrated libraries are that they are portable (everything is in one file) and the components and models in them cannot be edited. The bulk of components (around 70,000 ISO-compliant components) are supplied in integrated libraries, which you will find in the Library folder of your Altium Designer installation. You can extract the source libraries out of an integrated library. To do this, open the integrated library and choose Extract Sources to extract the source libraries, which will then be opened for editing. For more information, refer to Working with Integrated Libraries.

You also can create a schematic library of all the components that have been placed in the schematic documents of the active project by clicking Design » Make Schematic Library.

Creating Schematic Components

The Schematic Library editor is used to create and modify schematic components and manage component libraries. It is similar to the Schematic Editor and shares the same graphical design objects, with the addition of the Pin tool. Components are created with the design objects in the Schematic Library editor. Components can be copied and pasted from one schematic library to another or from the schematic editor to the schematic library editor.

Creating a New Library Package and Schematic Library

Before we start creating components, we need a new schematic library in which to store them. This library could be created as a stand-alone library, referencing models in separate files. An alternate approach is to create the new schematic library with the intention of compiling it and the referenced models into an integrated library package. This means that before we create the library, we need to create a new library package. A library package (*.LibPkg) is the basis of an integrated library - it binds together the separate schematic libraries, footprint libraries and model files that are ultimately compiled into the single integrated library file.

The new library open at the default Component_1.
The new library open at the default Component_1.

To create a new integrated library package and an empty schematic library, complete the following steps:

  1. Select File » New » Library » Integrated Library. A new library package named Integrated_Library1.LibPkg is created and displayed in the Projects panel.
  2. Right-click on the library package name in the Projects panel then select Rename. In the dialog that opens, browse to a suitable location, type in the desired file name then click Save. Note that the extension will be added automatically if you do not enter it.
  3. To add an empty schematic library select File » New » Library » Schematic Library. A new library named Schlib1.SchLib is created.
  4. Click File » Save As then save the library as Schematic Components.SchLib.

Creating a New Schematic Component

To create a new schematic component in an existing library, you would normally select Tools » New Component. However, since a new library always contains one empty component sheet, we will simply rename Component_1 to get started on creating our first component, an NPN transistor.

  1. Select Component_1 from the Design Item ID list in the panel then click the Edit button in the panel or double-click Component_1 to open the Properties panel in Component mode. Type the new component name that uniquely identifies it (for example, NPN) in the Design Item ID field then click Enter.
  2. If necessary, relocate the origin of the sheet to the center of the design window by selecting Edit » Jump » Origin (shortcut J, O). Check the Status line at the bottom left of the screen to confirm that you have the cursor at the origin. Components supplied by Altium are created around this point, marked with a crosshair through the center of the sheet. You should always create your components close to this origin. When you place a component on the schematic, the component will be 'held' by the electrical hot spot (pin end) that is nearest to this origin.
  3. The UnitsSnap Grid, and Visible Grid can be set in the Properties panel in Library Options mode (accessed by choosing Tools » Document Options from the main menus). If desired, enable the Show Comment/Designator option in the Properties panel to display the Comment/Designator strings for the current component in your library document. Rather than opening the Properties panel whenever you need to change the grid, you can press G on the keyboard to quickly cycle through and set the Snap Grid to 1, 5, or 10 units.

The Snap Grid and Visible Grid also can be configured on the Schematic - Grids page of the Preferences dialog.

If the schematic library editor grid is not visible, press Page Up to zoom in until it is visible. Note that zooming occurs around the cursor, so keep the cursor close to the origin as you zoom in.

  1. To create the NPN transistor, the component body needs to be defined. Select Place » Line (shortcut P, L), or click the Line button () located on the Active Bar and on the Utilities toolbar drop-down.

The Line button on the Active Bar (left) and the Utilities toolbar drop-down (right).
The Line button on the Active Bar (left) and the Utilities toolbar drop-down (right).
Using the following image and the grid lines as guides, place the vertical line. Click once to place the first end of the line then move the cursor to the location of the other end and click to place it, then right-click or press Esc to end placement of the line. Note that you are still in line placement mode as indicated by the crosshair on the cursor.

Placed NPN bodyPlaced NPN body

  1. For this transistor, the additional two lines are placed at an angle (the arrowhead will be placed in Step 6). Press Shift+Spacebar while you are placing a line to cycle through the different placement modes and find the angle mode that allows you to place the lines correctly. After defining the two angled lines, press Esc to exit placement mode.
The exact location of graphical lines is not critical. What is critical in component design is the pin location or more specifically what is referred to as the hot end of the pin. This is the point that creates the electrical connectivity, therefore, it is the pins you should always place on a grid that is suitable for wiring.
  1. To create the arrowhead, select Place » Polygon (shortcut P, Y) or click the Polygon button () located on the Active Bar and on the Utilities toolbar drop-down.

The Polygon button on the Active Bar (left) and Utilities toolbar drop-down (right) 

Before placing, press the Tab key to open the Properties panel to define the Polygon properties. Set Border to Smallest, ensure Transparent is not enabled and set the Fill Color and the Border color boxes to the same color as shown in the following image.

In the design space, click to place each vertex of the triangle (arrowhead) then right-click to end. Right-click or press Esc to end polygon placement mode. Double-click the placed polygon to open the Properties panel. In the Vertices region, set the vertices for the placed polygon.

  1. Save the component by clicking File » Save (shortcut Ctrl+S).

Adding Pins to the Schematic Component

Component pins give a component its electrical properties and define connection points on the component. They also have graphical properties. To place pins on the component:

  1. Select Place » Pin (shortcut P, P) or click on the Place Pin button () located on the Utilities toolbar drop-down and the Active Bar.


    The Pin button on the Utilities toolbar drop-down (left) and the Active Bar (right)
    The pin appears floating on the cursor, held by the electrical end (also referred to as the hot end) that must be placed away from the component body.
  2. Before placing the pin, press the Tab key to open the Properties panel to edit the Pin properties.

If you define the pin attributes before it is placed, the defined settings become the defaults and the pin numbers and any numeric pin names will auto-increment when you place them, which makes placement much easier and quicker.
  1. In the Properties panel, enter a pin name in the Name field (1 for the first NPN pin), and a unique pin number (also 1) in the Designator field. Enable visibility by ensuring the visibility is set to  if you want the pin name and designator visible when you place the component on a schematic sheet.
  2. Set the Electrical Type of the pin from the drop-down list. This type is used when a project is compiled or when analyzing a schematic document to detect electrical connection errors in a schematic sheet. In this component example, all pins should have the Electrical Type set to Passive.
  3. Set the Pin Length to 200 mil (all pins in this component will be set to 200 mil), then click Enter.
  4. Press the Spacebar to rotate the pin in 90º increments while it is floating on the cursor. Only one end of a pin is electrical (the hot end) and you must place the pin with this end out from the component body. The non-electrical end of the pin has the pin name next to it.
  5. Continue to add the pins required to finish the component, making sure the pin names, numbers, symbols, and electrical types are as shown in the following image.

If you want to alter the distance (in hundredths of an inch) between the pin name or number and the body of the component, select Tools » Preferences and change the Pin Margin options on the Schematic - General page of the Preferences dialog.
  1. The drawing of your component is complete. Click File » Save to save it.

Notes on Adding Pins

  • To set pin properties after placing the pin, double-click on the pin to open the Properties panel in Pin mode. 
  • Use "\" (backslash) after a letter to define an over-scored letter in a pin name. 
  • You also can edit pin properties directly in the Properties panel in Component mode without having to edit each pin individually. On the Pins tab in the Properties panel, click  to open the Component Pin Editor dialog as shown in the following image.

Review and edit all pins in the Component Pin Editor dialog.
Review and edit all pins in the Component Pin Editor dialog.

  • For a multi-part component, the relevant pins for the selected part will be highlighted in the Component Pin Editor dialog. All pins of other parts are grayed out. 

Setting the Schematic Component's Properties

Each component has properties associated with it such as the default designator, the PCB footprint and/or other models, and any parameters that have been defined for the component. Perform the following steps to set the component's properties:

  1. Select the component in the Components list of the SCH Library panel then click the Edit button or double-click on the component name to open the Properties panel.
  2. Type "Q?" in the Designator field. Including the question mark allows the Designator to auto-increment upon placement (Q1, Q2, etc.,) if the designator is defined before placing the component (press Tab while placing to edit an object before placement).
  3. Enter a Comment that will display when the component is placed on a schematic sheet, e.g., NPN. Make sure the visibility option for the Designator and Comment fields is enabled (). If the Comment field is left blank it will automatically be populated with the Name in the Links region when the component is placed.
  4. Enter a string into the Description field that describes the transistor, e.g., Transistor, NPN Generic. This string is searched during a library search and is displayed in the Components panel.
  1. Leave the other fields at their default values while models and parameters are added, as required.

Adding Models to the Schematic Component

You can add any number of PCB footprint models to a schematic component, as well as model files that are used for circuit simulation and signal integrity analysis. If a component has multiple models (for example, multiple footprints), you can select the appropriate model in the Properties panel when you place the component on a schematic. In terms of sourcing the models, you can create your own or download a vendor's model file from the web. PCB libraries can include any number of PCB footprints.

Wherever possible, Spice models used for circuit simulation (.ckt and .mdl files) are included in the supplied integrated libraries in the Library folder of your Altium Designer installation. If you are creating a new component, you would typically source the Spice model from the device vendor's website. You can also use the XSpice Model Wizard (Tools » XSpice Model Wizard) to create certain Spice model types to add to the component.

The schematic library editor's Model Manager dialog (Tools » Model Manager) enables you to view and organize your component models. For example, you can add the same model to multiple, selected components. Alternatively, you can add models to the current component by using the Add drop-down in the Parameters region of the Properties panel in Component mode then selecting the model, or from the Model region of the design space (click the upside-down arrows/caret symbol on the bottom-right of the design space as shown in the following image).

Click the highlighted caret symbol to access the Model region of the design space.

Search Locations for Model Files

When you add a model to a component in the schematic library editor, the model is linked; the model data is not copied or stored in the schematic component. This means the linked models must be available both during library creation and when the component is placed on a schematic sheet. When you are working in the library editor, the link from the component to the model information is resolved using the following valid search locations:

  • Libraries that are included in the current library package project are searched first.
  • PCB libraries (not integrated libraries) that are available in the currently Installed Libraries list are searched next. Note: The list of libraries can be ordered.
  • Finally, any model libraries that are located on the project search paths are searched. Search paths are defined on the Project Options - Search Paths tab of the Project Options dialog (Project » Project Options). Note: Libraries that are on the search path cannot be browsed to locate a model, however, the compiler does include them when searching for a model.

In this document, we will use different methods of linking the components and its model files. When the library package is compiled to create the integrated library, the various models are copied from their source locations into the final integrated library.

Adding Footprint Models to a Schematic Component

First, we will add the model that represents the component in the PCB Editor, i.e. the footprint (also known as a 'pattern' or 'decal' in other design tools). The footprint we will use for our schematic component is named "BCY-W3". When linking a PCB footprint model to a schematic component in the schematic library editor, the model must exist in a PCB library, not an integrated library.

  1. In the Properties panel in Component mode, use the Add drop-down in the Parameters region then select Footprint to open the PCB Model dialog.

  1. Click the Browse button to open the Browse Libraries dialog to browse footprint libraries that have been added to your library project.

  1. If the desired footprint is not available in any of the current libraries, you will need to search for it using the Find button to open the File-based Libraries Search dialog.
  2. Set the Scope to Libraries on path and the Path to the appropriate folder. Ensure the Include Subdirectories option is enabled.
  3. In the query field at the top of the dialog, enter the appropriate Field and Value then click Search.

  1. Select the desired *.PcbLib file from the resulting Browse Libraries dialog then click OK to return to the PCB Model dialog.

Select the desired footprint in the Browse Libraries dialog.

  1. If this is the first time you have used this library, you will be asked to confirm the installation of this library, which will make it available for future use. Click Yes in the Confirm dialog. The PCB Model dialog is updated with the footprint model information.
  2. Click OK to add the model. It will appear in the Parameters region in the Properties panel and also in the Models region at the bottom of the design space.
  3. After you add the model, it is a good idea to check the Pin-Pad mapping. To do this, open the PCB Model dialog (select the footprint in the Parameters region of the Properties panel then click  or double-click the model in the Model region) then click Pin Map to open the Model Map dialog and make any necessary edits for the Pin-Pad pairs.

Adding Component Parameters

Component parameters are a means of defining additional information about the component. This could include data your company needs in the BOM, manufacturer's data, a reference to the component datasheet, or design instruction information, such as design rules or assignment to a PCB class, etc. Parameters can be used to add any useful information that you might need for a component and are configured in the Properties panel.

Use the following steps to add a parameter to a schematic component:

  1. Double-click on the component name in the SCH Library panel to open the Properties panel in Component mode.
  2. In the Parameters region, select Parameter from the Add drop-down.
  1. Enter the desired name of the parameter and a value.
  2. Ensure the Parameter's visibility option is set to enabled () if you want the name and value to display when the component is placed on a schematic sheet.
  3. Click the Font Link and Other at the bottom of the Parameters region to access additional options to configure parameters. 

You also can select the parameter in the design space to open the Properties panel in Parameter mode to configure the parameter.
To edit and manage parameters across all components in a library, use the Parameter Table Editor dialog. The dialog is accessed by enabling the required parameters in the Parameter Editor Options dialog (Tools » Parameter Manager) then clicking OK.

Parameters for Component-to-Datasheet Linking

Parameters can be used to create links from the component to reference material, such as data sheets. Linkage is established by adding specific component parameters. One approach is to use the F1 key to access a referenced document. The other, which caters to multiple references, uses the right-click context menu.

HelpURL

If a component includes a parameter with the reserved name HelpURL, then the URL will be resolved when the F1 key is pressed while the cursor is hovering over the component. The URL can actually be a web address, a text file, or a PDF file.

Component Links

The second technique supports multiple links and naming of each link. In this situation, you add a pair of parameters: one that points to the linked document or URL and a second that defines a label (or description) for the link. The parameter pairs are defined as follows.

 

Parameter Name

Example Parameter Value

1 st parameter

ComponentLink1URL

C:_ _My Datasheets\XYZDatasheet.pdf

2 nd parameter

ComponentLink1Description

Datasheet for XYZ

1 st parameter

ComponentLink2URL

C:_ _My Datasheets_ _Alternate XYZDatasheet.pdf

2 nd parameter

ComponentLink2Description

Datasheet for Alternate XYZ

Any number of links can be defined using the same parameter pair with the number incremented. When you right-click on a component that uses datasheet linking, a Reference menu entry appears with an entry for each component link in the sub-menu.

String Indirection

There might be instances when you need to define a placeholder that will be populated with text at a later time. For example, you might want a parameter called DesignedBy on a schematic template whose value is defined when the template is used for a new schematic. Altium Designer uses a technique known as string indirection to support this requirement. At the schematic sheet level, you can add a document parameter whose value is left blank. You then place a standard string on the document, as an example, "=DesignedBy". The equal sign sets this string to be an indirection string. Instead of displaying the text, it will display the current value of the document parameter DesignedBy.

String indirection also can be used with components. As well as displaying any parameter that has been added to the component in its own right by enabling the  option, you also can indirect the string to the component's Comment field. One situation where string indirection is useful is for a component that is used for both PCB design and circuit simulation. During schematic-to-PCB design transfer, the schematic Comment field is mapped to the Comment field of the PCB component. However, for circuit simulation, the Comment field is not used since the simulator can require many properties for a component. For example, a BJT has five simulation properties and these five properties instead are defined as parameters. In this case, any of the circuit simulation parameters can be mapped to the Comment field using string indirection by entering the name of the parameter preceded by an equal sign ("="). For example, a resistor has one simulation parameter, called Value. If the resistor's Comment field is set to =Value , then the contents of the Value parameter will be displayed as the Comment. If you are tuning the resistance value during simulation, the correct resistance will be used when you transfer the design to the PCB layout.

Checking the Component and Generating Reports

To check that the new components have been created correctly, there are three reports that can be generated. Ensure the library file is saved before the reports are generated. 

Component Rule Checker

The Component Rule Checker tests for errors such as duplicates and missing pins.

  1. Select Reports » Component Rule Check (shortcut R, R) to open the Library Component Rule Check dialog.

  1. Set the attributes you want to check then click OK. A report titled <libraryname.ERR> displays in the design space that lists any components that violate the rule check.

  1. Make any adjustments necessary to the library then rerun the report.
  2. Save the schematic library. Close the report to return to the schematic editor design space.
Linkage from the component pins to the model is not checked by the Component Rule Checker. This level of linkage is checked, however, when a library package is compiled into an integrated library. Even if you do not intend to use the compiled integrated libraries, it is beneficial to create and manage your libraries using library packages.

Component Report

The Component Report lists all the information available for the active component.

  1. Select Reports » Component (shortcut R, C).
  2. A report titled <libraryname.cmp> displays in the design space and includes the number of parts with the pin details for each part in the component.

  1. Close the report to return to the schematic editor design space.

Library Report

To create an extensive report of each component in the library:

  1. Select Reports » Library Report to open the Library Report Settings dialog.

  1. Configure the report settings then click OK. The report will open in Microsoft Word or your web browser depending on the style chosen.

Copying Components from Other Libraries

You also can copy components to your schematic library from other open schematic libraries and then edit their properties as required. If the component is part of an integrated library, you will have to open the .IntLib file and choose Yes to extract the source libraries. Then open the generated source library (*.SchLib) from the Projects panel.

  1. Select the component that you want to copy in the Design Item ID list of the SCH Library panel so it displays in the design window.

  1. Select Tools » Copy Component to open the Destination Library dialog, which lists all currently open schematic library documents.

  1. Select the document to which you want to copy the component then click OK. A copy of the component will be placed in the destination library where you can edit it, if necessary.

Copying Multiple Components

You also can use the SCH Library panel to copy multiple components. Select the components in the panel using the standard Ctrl+Click or Shift+Click features, then right-click on one of the selected components and choose Copy from the pop-up menu. You can then right-click in the list and:

  • Paste the component(s) back into the same library.
  • Paste the component(s) into another open library.
  • Copy and paste components from a schematic into an open library using the same technique.

Creating a New Schematic Component with Multiple Parts

The transistor symbol that you have created represents the entire component - this symbol represents what is supplied in the physical package delivered by the device manufacturer. There are situations where one physical component is better represented as a collection of parts. For example, there are resistor networks that contain eight individual resistors and each can be used independently of the others. Another example would be a 74F08SJX quadruple 2-input AND gate - in this device, there are four independent 2 input AND gates. While the component could be drawn as a single symbol showing all four gates, it would be more useful if it is drawn as four separate gates, where each gate can be placed independently of the others anywhere on the schematic. This approach of drawing a component as a set of separate parts is referred to as a multi-part component.

This section outlines the steps to create a 74F08SJX Quad 2-IN AND gate. We also will create an alternate view mode for the component, i.e. an IEEE representation of the device.

  1. In the schematic library editor, click Tools » New Component (shortcut T, C) to open the New Component dialog.
  2. Type in the name of the new component, e.g., 74F08SJX, then click OK.

The new component name displays in the list in the SCH Library panel and an empty component sheet displays with a crosshair through the center (origin) of the sheet.

  1. Now we will create the first part of the new component including its pins as described in the following sections. The first part will then be used as the basis for the other parts since only the pin numbers need to change between the parts.

Creating the Body of the Component

The body of this component is constructed from a multi-segment line and a circular arc. Make sure the component sheet origin is in the center of the design space by selecting Edit » Jump » Origin (shortcut: J, O). Also, make sure the grid is visible (View » Grids).

Placing Lines

  1. Note the current grid setting displayed on the Status bar (bottom left). Set the grid to 5 by using the View » Grids » Set Snap Grid menu command.
  2. Select Place » Line (shortcut P, L) from the main menus, click the  on the Active Bar or the Utilities toolbar drop-down. The cursor changes to a crosshair and you are now in multi-segment line placement mode.
  3. Press the Tab key to open the Properties panel in Polyline mode to set the line's properties. Set Line to Small. Click Esc or the   in the design space to re-enter placement mode.
  4. Refer to the X, Y coordinates on the left side of the Status bar; position the cursor at 25, -5, then click or press Enter to anchor the starting point of the line. Then position the mouse and click to anchor a series of vertex points that define the segments of the line (at 0,-5; 0,-35 and 25,-35).
  5. When you have finished drawing the line, right-click or press Esc to exit line placement mode.
  6. The completed polyline is shown below. Save the document.

Drawing an Arc

Placing an arc is a four-step process that sets the center point, radius, start angle, and end angle of the arc. You can press Enter instead of click to place the arc.

  1. Select Place » Arc (Center) (shortcut P, A) or click  on the Active Bar. The last arc drawn appears on the cursor and you are now in arc placement mode. 
  2. Press Enter to accept the arc start angle; when the cursor jumps again, press Enter again to define the arc end angle.
  3. Press the Tab key to open the Properties panel in Arc mode to set the arc's properties. Set the Radius to 15, Start Angle to 270, End Angle to 90, and the Width to Small. Use the Location region to define the coordinates: X: 25, Y: -20.
  4. There is no need to move the mouse since the cursor will jump to the correct location to define the Radius of 15 as in the Properties panel. Press Enter to accept the radius setting.
  5. The cursor will then jump to the start point of the arc, as set in the panel.
  6. Without moving the mouse, right-click or press Esc to exit Arc placement mode.

Adding Signal Pins

Add the pins using the same technique described in the Adding Pins to a Schematic Component section earlier in this document. Configure Pins 1 and 2 with an Electrical Type of Input and Pin 3 is Output. Set the pin Length to 20. The completed part is shown below.

 

Creating Parts 2, 3, and 4

  1. Select the component by clicking Edit » Select » All (shortcut Ctrl+A) from the main menus.
  2. Click Edit » Copy (shortcut Ctrl+C) to copy to the clipboard.
  3. Click Tools » New Part. A blank component sheet displays. In the SCH Library panel, the 74F08SJX component has been updated to include Part A and Part B. Click on the triangle to the left of the component name in the Design Item ID list in the SCH Library panel to view the new parts.

  1. Click Edit » Paste (shortcut Ctrl+V). The outline of the component part will appear on the cursor. Place it at the same relative location to the sheet origin as Part A (the black cross-hair in the center of the sheet indicates the origin). If necessary, select and move the copied part until it is positioned the same as the original part.
  2. Update the pin information in the new part (Part B) by double-clicking on each pin and changing the pin name and number in the Properties panel. When complete, Part B will look like the image below.

  1. Repeat steps 3 through 5 to create the remaining two parts, Parts C and D. Save the library.

Adding Power Pins

To define the power pins, you can create a fifth part for the component and place the VCC and GND pins on that part. Remember to enable the  option in the Properties panel to ensure that it cannot be swapped with any of the gates during re-annotation.

Setting the Component's Properties

  1. Set the component's properties by clicking the Edit button in the SCH Library panel when the component is selected in the Design Item ID list. In the Properties panel, set the Designator to U? and the Description to Quad 2-Input AND Gate. In the Parameters region of the panel, use the Add drop-down then select Footprint to open the PCB Model dialog. Enter DIP14 in the Name region.
  2. Save the component in the library by selecting File » Save from the main menus.

Creating an Alternate View Mode for a Part

You can add many alternate view modes to a component part. These view modes can contain different graphical representations of the component, such as a DeMorgan or an IEEE representation. Each alternate view mode should always have the same set of pins as the Normal mode. If an alternate view of a part has been added, it is displayed for editing in the schematic library editor by selecting the alternate mode from the Mode drop-down in the Mode toolbar.

To add an alternate view mode, with the component part displayed in the design window of the schematic library editor:

  1. Select Tools » Mode » Add or click on the  button on the Mode toolbar. A blank sheet for Alternate 1 displays.
  2. Typically, you would copy the part you created in the Normal mode and paste it into the new Alternate mode. Use Edit » Copy and Edit » Paste to copy and paste the Normal mode to the Alternate mode. This gives you the correct set of pins and you can modify the graphical elements and position the pins as required.
  3. Click File » Save to save the library.

IEEE Representations

If a graphical IEEE representation needs to be added to the component, Altium Designer includes a selection of IEEE symbols. To access and place the symbols, use the IEEE Symbols toolbar (shown below) or click Place » IEEE Symbols.


Creating PCB Component Footprints

Footprints are always built on the top side, regardless of which final side of the board they are placed. Layer-specific attributes, such as surface mount pads and solder mask definitions, are automatically transferred to appropriate bottom-side layers when you flip the footprint to the other side of the board during component placement.

This section covers the following topics:

  • Creating a new PCB library.
  • Using the Footprint Wizard to create a footprint for a schematic component.
  • Manually creating a footprint.
  • Other special footprint requirements, including irregular pad shapes.
  • Including three-dimensional component body detail (3D bodies).

Footprints can be copied from the PCB editor into a PCB library, copied between PCB libraries, or created from scratch using the Footprint Wizard or drawing tools. If you have a PCB design with all the footprints already placed, you could use the Design » Make PCB Library command in the PCB editor to generate a PCB library that includes only those footprints. Altium Designer also includes comprehensive libraries (*.PcbLib) of predefined through-hole and SMD component footprints for use in designing PCBs. 

The footprints that are created manually in this section are only to illustrate the procedures required; they are not dimensionally accurate. Always check the specifications of a new footprint against the manufacturer's datasheet.

Creating a New PCB Library

To create a new PCB library:

  1. Select File » New » Library » PCB Library. A new PCB library document named PcbLib1.PcbLib is created and an empty component sheet called PCBComponent_1 displays.
  2. Rename the new PCB library document to PCB Footprints.PcbLib, for example, by selecting File » Save As. The new library PCB Footprints.PcbLib displays in the Projects panel.
  3. Open the PCB Library panel.
  4. Click once in the PCB library editor design space and press Page Up or Page Down as needed until you can see the grid.

You are now ready to add, remove, or edit the footprint components in the new PCB library using the PCB library editor commands.

The default is to display the grids using dots. If you prefer, grids can be displayed using lines. This is configured in the Grid Editor dialog, accessed by clicking the Properties button in the Properties panel as shown in the image below. Alternatively, press the Ctrl+G shortcut to open the dialog.

In the image, the fine grid is displayed as dots, and the coarse grid is displayed as lines.

Using the Footprint Wizard

The PCB library editor includes a Footprint Wizard that will build a component footprint using information you supply. We will use the Wizard to create a footprint for a DIP14.

Perform the following steps to create the new component footprint DIP14 using the Footprint Wizard:

  1. Select Tools » Footprint Wizard from the main menus. The Footprint Wizard opens. Click Next to progress through the pages of the Wizard.

  1. Select Dual in-line Packages (DIP) and Imperial (mil) on the Component patterns page.

  1. Select each dimension and type in the new dimensions as shown below: 60mil for the round pads and 32mil for the hole dimension.

  1.  Select and type the new pad to pad distances as shown below: 300mil (horizontal) and 100mil (vertical).

  1. Leave the outline width page at the default setting as shown below.

  1. Set the number of pads to 14 on the following page as shown below.

  1. On the next page, ensure the name is displayed as DIP14 as shown below.

  1. Click Finish on the last page of the Wizard. The filename of the new footprint (DIP14) will appear in the Footprints list in the PCB Library panel and the new footprint will display in the design window, as shown in the following images. 

  1. Click File » Save from the main menus to save the library with its new footprint component.

Using the IPC® Compliant Footprint Wizard

You also can create component footprints using the IPC Compliant Footprint Wizard. Rather than requiring you to enter the properties of the pads and tracks that are used to define the footprint, the IPC® Compliant Footprint Wizard takes the actual component dimensions as its inputs. Based on the formulae developed for the IPC-7351 standard, the Wizard generates the footprint using standard Altium Designer objects, such as pads and tracks. The Wizard is launched from the PCB library editor by clicking Tools » IPC Compliant Footprint Wizard. Click Next to progress through the pages of the Wizard, setting the options as desired on each page.

 

The IPC Compliant Footprint Wizard builds the footprint based on the component dimensions.

Manually Creating a Footprint

Footprints are created and modified in the PCB library editor using the same set of tools and design objects available in the PCB editor. Anything can be saved as a PCB footprint, including corner markers, photo tool targets, and mechanical definitions. Once a footprint has been placed onto a PCB, you can set the Type property, defining it as Graphical or Mechanical if required. 

To create the component footprint, we will place pads to form the component pin connections then place tracks and arcs for the outline. Design objects can be placed on any layer, however, the outline is normally created on the Top Overlay (silkscreen) layer and the pads on the multi-layer (for thru-hole component pins) or the top signal layer (for a surface mount component pins). When you place the footprint on a PCB, all objects that make up the footprint will be assigned to their defined layers.
To manually create a footprint suitable for the NPN transistor:

  1. Before creating the footprint, check that the units and grids are suitable. Click in the design space then choose Tools » Document Options from the main menus to open the Properties panel in Library Options mode. In the Other region, ensure that Units is set to mils. In the Snap Options region, enable Grids and All Layers. In the Grid Manager region, double-click on a listed item to open the Cartesian Grid Editor dialog. In the Steps region, set Step X and Step Y to 10mil using the associated drop-downs. The "link" icon must be set to   in order to access both Step X and Step Y settings.
You need to set the grid to suit the spacing required by the pads in the footprint you are creating.
To change the snap grid while you are working, press Ctrl+G
  1. To create an empty component footprint design space, click Tools » New Blank Footprint (shortcut T, W) from the main menus.
  1. To rename the default blank footprint, double-click on its name in the PCB Library panel to open the PCB Library Footprint dialog. Enter the same name as the one used earlier in the tutorial (BCY-W3).
It is recommended that you build the footprint around the design space 0, 0 reference point indicated by the origin marker. Use the shortcut J, R to jump the cursor to the origin at any stage while you are working. The reference point is the place at which you will be 'holding' the component when you place it. Typically, the reference point is either the center of pad 1 or the geometric center of the component. The reference point can be set to either of these at any time using the Edit » Set Reference sub-menu options.

Placing Pads on a New Footprint

The Properties panel in Pad mode includes a viewer in the Pad Stack region that allows you to inspect the pad shapes on the defined layers (select the desired layer from the Layer drop-down in the Properties region of the panel). You can define normal round, rectangular, octagonal, rounded rectangle (oval), or Hole Size in pads and toggle their Plated property and all the work needed to support thermal reliefs generation, clearances calculation, output to Gerber, ODB++, and NC Drill, for example, will be automatically handled. The NC Drill Output (NC Drill Excellon format 2) will generate up to six different NC files for three different hole kinds and whether or not they are plated or non-plated.

One of the most important procedures in creating a new component footprint is placing the pads that will be used to solder the component to the PCB. These must be placed in exactly the right positions to correspond to the pins on the physical device.

To place the pads:

  1. Select Place » Pad (shortcut P, P) or click  on the Active Bar or on the PCB Lib Placement toolbar. A pad will appear floating on the cursor. Before placing the first pad, press the Tab key to open the Properties panel in Pad mode to define the pad properties.
  2. Edit the various regions of the panel as shown in the following image. This creates a stretched round pad.

  1. Using the coordinates displayed in the Status bar, position the first pad at X:0, Y:-50 then click or press Enter to place.
  1. After placing the first pad, another will appear on the cursor. Position the cursor at X:0, Y:0 then click to place the second pad. The pad designator is automatically incremented.
  2. Position the cursor at X:0, Y:50, then click to place the third pad.
  3. Right-click or press Esc to exit pad placement mode. The three pads should resemble the following image.

  1. Save the footprint by selecting File » Save (shortcut Ctrl+S).
For a surface mount pad, in the Properties panel in Pad mode, using the Layer drop-down in the Properties region, set the layer to Top Layer. For a thru-hole pad that has different size requirements for each layer, use the Pad Stack settings in the panel.

Pad Designators

Pads can be labeled with a designator (usually representing the component pin number) of up to 20 alphanumeric characters. The designator can be left blank if desired. If the designator begins or ends with a number, the number will auto-increment when placing a series of pads sequentially. To achieve alpha increments, e.g,. 1A, 1B, or numeric increments other than 1, use the Setup Paste Array dialog (click the Paste Array button in the Paste Special dialog (Edit » Paste Special)).

Paste Array Feature

By setting the designator of the pad prior to copying it to the clipboard, you can use the Setup Paste Array dialog to automatically apply a designation sequence during pad placement. By using the Text Increment field in the Setup Paste Array dialog, the following pad designator sequences can be placed:

  • Numeric (1, 3, 5)
  • Alphabetic (A, B, C)
  • Combination of alpha-numeric (A1 A2, 1A 1B, A1 B1, or 1A 2A, etc.)

To increment numerically, set the Text Increment field to the amount by which you want to increment. To increment alphabetically, set the Text Increment field to the letter in the alphabet that represents the number of letters you want to skip. For example, if the initial pad has a designator of 1A, set the field to A, (first letter of the alphabet) to increment designators by 1. If you set the field to C (third letter of the alphabet), the designators will become 1A, 1D (three letters after A), 1G, etc.

Drawing the Outline on the Component Overlay

The outline that appears on the PCB silkscreen is defined on the Top Overlay layer. If the component is flipped to the bottom of the board during placement, the overlay is automatically transferred to the Bottom Overlay layer.

  1. Click on the Top Overlay layer tab at the bottom of the main editing window before placing overlay objects such as arcs or lines (tracks).
  2. To place the arc, select Place » Arc (Center) from the main menus, or select the  from the Active Bar or PCB Lib Placement toolbar. Position the cursor at X:0, Y:0 then click to define the arc center and edit the placed arc through the settings in the Properties panel in Arc mode (the panel opens automatically when in placement mode).
If you know the arc radius and start and end angles, it is easier to complete the arc placement without trying to interactively define these settings.
  1. Click to approximately define the arc radius, then click to define the arc start angle. Click again to define the arc end angle. Right-click to exit arc placement mode. The placed arc is shown in the following image.

 

  1. Set the arc properties in the Properties panel as follows: Width = 6mil, Radius = 105mil, Start Angle = 55, End Angle = 305.
  1. To place the line, click Place » Line (shortcut P, L), or click the  button on the Active Bar or on the PCB Lib Placement toolbar. Position the cursor near the end of the arc and press Page Up to zoom in. Click to start the line segment.
  2. Press Tab to open the Properties panel in Line Placement mode. Set the Line Width to 6mil and Current Layer to Top Overlay.
  3. Move the mouse until it is over the other end of the arc, then click again to define the end of the line. During line placement, you can cycle through the different line corner modes by pressing the Shift+Spacebar key combination.
  4. To exit line placement mode, right-click or press Esc. The completed arc is shown in the following image.

Creating Footprints with an Irregular Pad Shape

There will be situations when you need to create a footprint with pads that have an irregular shape. This can be done using any of the design objects available in the PCB library editor, but there is an important factor that you must keep in mind. The software automatically creates solder and paste masks based on the shape of pad objects. If you use pad objects to build an irregular shape, the matching irregular mask shape will be generated correctly. If you build the irregular shape from other objects, such as lines (tracks), fills, regions, or arcs, you also will need to define any required solder or paste masks by placing suitably enlarged or contracted objects on the solder mask and paste mask layers.

You can learn more about custom pad shapes here

Managing Components that Include Routing Primitives in their Footprint

When you transfer a design, 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. If the footprint includes copper primitives touching the pads, these primitives will not be assigned the net name automatically and will create a design rule violation. In this case, you will need to perform an update process to assign the net name. The PCB editor includes a comprehensive net management tool that is launched by selecting Design » Netlist » Configure Physical Nets from the main menus. In the Configure Physical Nets dialog, click in the New Net Name region to select the net to assigned to the unassigned primitives.

Footprints with Multiple Pads Connected to the Same Pin

The footprint shown in the image below has multiple pads that are connected to the same logical schematic component pin. For this component, both of the two mounting hole pads have the same designator of '3'. 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, i.e. they are on the same net. Both of these can be routed.

TO-3 footprint showing two pads with a designator of 3 on the same net.

Handling Special Solder Mask Requirements

The footprint shown in the following image is the contact set for a push button switch, which is 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, creating 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 are automatically transferred when the component is placed on the bottom of the board.

Other Footprint Attributes

Solder and Paste Masks

Solder and paste masks are created automatically at each pad site on the Solder Mask and Paste Mask layers, respectively. The shape that is created on the mask layer is the pad shape, expanded or contracted by the amount specified by the Solder Mask and Paste Mask design rules set in the PCB editor or as specified in the Properties panel in Pad mode.

Pads with the solder mask displayed.

When you edit a pad, you see the settings for the solder mask and paste mask expansions. While these settings are included to give you localized control of the expansion requirements of a pad, you will not normally need them. Generally, it is easier to control the paste mask and solder mask requirements by defining the appropriate design rules in the PCB editor. Using design rules, one rule is designed to set the expansion for all components on the board, then, if required, you can add other rules that target any specific situations, such as all instances of a specific footprint type used on the board, or a specific pad on a specific component, etc.

Displaying the Masks

To check the solder and/or paste masks have been automatically defined in the PCB library editor, click the Top Solder layer tab at the bottom of the main design window and examine the contents.

To make the mask layers visible, open the View Configuration panel and enable the  for each mask layer.

The ring that appears around the edge of each pad in the color of the Top Solder Mask layer represents the edge of the solder mask shape protruding by the expansion amount from under the multi-layer pad because multi-layer is at the top of the layer drawing order; it is drawn on top. The Layer Drawing Order is set on the PCB Editor - Display page of the Preferences dialog).

Setting Mask Expansions by Design Rules

To set the mask expansions in the design rules:

  1. Confirm that the Rule option is selected in the Paste Mask Expansion and/or Solder Mask Expansion regions of the Properties panel in Pad mode.
  2. With a PCB open (you can create a temporary new PCB file if you do not have a PCB open) select Design » Rules from the main menus and examine the Mask category design rules in the PCB Rules and Constraints Editor dialog. These rules will be obeyed when the footprint is placed in the PCB. Note: The rule system is hierarchical; you can define a higher priority rule to selectively override the general rule that applies to the entire board if required.

Manually Specifying Mask Expansions

To override the expansion design rules and specify a mask expansion as a pad attribute:

  1. Select Manual in the Paste Mask Expansion and/or Solder Mask Expansion sections of the Properties panel in Pad mode.

  1. Type the required value(s) then save the footprint.

Designator and Comment Strings

Default Designator and Comment Strings

What you are building in the library is a footprint. When that footprint is placed on a board, it is given a designator and comment and is then referred to as a component. You do not need to manually define placeholders for the designator and comment strings when you build the footprint since these are added automatically when the footprint is placed on a board. The locations of these strings are determined by the designator and comment string Autoposition options in the Properties panel in Parameter mode when the designator or comment string is selected in the design space. You can pre-define the required string position (and size) on the PCB Editor - Defaults page of the Preferences dialog.

Additional Designator and Comment Strings

There may be situations when you would like additional copies of the designator or comment strings. As an example, your assembly house wants a detailed assembly drawing with the designator shown within each component outline, while your company requires 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 (there is also a .Comment special string). To satisfy your assembly house requirement, you would place the .Designator string on a mechanical layer in the library editor, then generate a printout that included this layer. If you need this feature:

  1. Display the required mechanical layer by ensuring the is enabled for each mechanical layer in the View Configuration panel.

  1. Click on the Mechanical layer tab at the bottom of the main design window to activate this layer. The tab will be highlighted and all new text will be placed on this layer.
  2. Select Place » String (shortcut P, S) from the main menus or click  on the Active Bar.
  3. Press the Tab key to pause placement. Enter ".Designator" in the Text field in the Properties region of the Properties panel (in Text mode). Set Text Height to 40mil and Width to 6mil in the diagram. The bottom left corner of the actual designator will locate where the dot in the .Designator string is located.
  4. Now we can place the text string. Press the spacebar to rotate the text string, position it in the required location then click to place it. Right-click or press Esc to exit string placement mode.
  5. If required, place the .Comment special string using the same procedure.
  6. To test the special strings, place the footprint on a PCB. You can place the footprint by right-clicking on its name in the PCB Library panel then selecting Place

Handling Special Layer-specific Requirements such as Glue Dots

There are a number of special requirements a PCB component can have, such as needing a glue dot or a peel-able solder mask definition. Many of these special requirements will be tied to the side of the board on which the component is mounted, 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 two mechanical layers that have been defined as a pair. Whenever you flip a component 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. Using this approach, you select a suitable mechanical layer to include the glue dot (or other special requirement) and define its shape using the available objects. When you place that footprint onto a board, you must set up the layer pairing. This instructs the software which layer it must transfer objects to when this component is flipped to the other side of the board. You cannot define layer pairs in the PCB library editor; this is done in the PCB Editor.

Including Three-Dimensional Component Detail

Given the density and complexity of today's electronic products, today's PCB designer must consider more than the horizontal component clearance requirements. You must also consider height restrictions and component-under-component placement options. There is also the need to transfer the final PCB to a mechanical CAD tool where a virtual product assembly can verify the complete packaging of the product being developed. Altium Designer includes a number of features, including realistic 3D visualization for these different situations.

Adding Height to a PCB Footprint

At the simplest level, you can add a height attribute to your footprint. To do this, double-click on the footprint in the Footprints list in the PCB Library panel to open the PCB Library Footprint dialog. Enter the desired height for the component in the Height field.

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

Adding a 3D Body to a Footprint

For more realistic component rendering in 3D view mode, you can add 3D body objects to the footprint. 3D bodies can be added to a footprint on enabled mechanical layers only. An extruded (simple) 3D body is a 2D polygon-type object that has surface color and a height attribute to pull or extrude the shape when rendered in 3D. 3D bodies can also be created as spheres or cylinders. One or more 3D bodies can be combined to define the physical size and shape of a component in all directions and are used by the Component Clearance design rule. Using high accuracy 3D models improves component clearance checking accuracy and generally improves the visual appeal and realism of the finished PCB assembly. Altium Designer supports directly importing 3D STEP models (*.step or *.stp files), Parasolid Models (*.x_t and *.x_b), and SolidWorks parts (*.SldPrt) into PCB footprints to render the 3D model. This functionality extends to having models either embedded or linked to Altium Designer PCB documents, however, linked models are not available in the PCB library editor.


3D bodies will flip to the other side of the board when the component is flipped. However, if you want the 3D body data (which is stored on a mechanical layer) to also be flipped onto another mechanical layer, you will need to define a layer pair in the PCB document as discussed in the section Handling Special Layer-Specific Requirements Such as Glue Dots.

Manually Placing 3D Bodies

3D bodies can be placed manually in the PCB library editor by clicking Place » 3D Body from the main menus or by selecting  from the Active Bar. They also can be added automatically to footprints in the PCB library editor (and to placed footprints in the PCB editor) using the Component Body Manager dialog (Tools » Manage 3D Bodies for Current Component).

You can place 3D bodies in either 2D or 3D modes.

We will now add a 3D body to footprint DIP14, which was created previously in this document. To manually place a 3D body in the PCB Library Editor:

  1. In the PCB Library panel, double-click the DIP14 entry to open the PCB Library Footprint dialog. The height of the component is important since we need to make the 3D body representative of the actual height.

  1. Click Place » 3D Body from the main menus or select  from the Active Bar. After launching the command, the Properties panel opens in 3D Body mode. Click Tab to pause placement and set the 3D Body properties.
  2. Select Extruded in the 3D Model Type region.
  3. Use the controls in the Properties region to give the 3D body object an identifying name (Identifier), set the Board Side (which side of the board the 3D body should project vertically) to Top. Note: You can enter a negative standoff height for components that protrude through the PCB, such as pins. Standoff heights are not checked by the Design Rules Checker.
  4. Define the Overall Height as 200mil and Standoff Height (distance from the board to the underside of the 3D body) to 0mil; enable the Override Color checkbox, then set the color box to a suitable color.
  1. Click the   or Esc to re-enter placement mode. The cursor will change to a crosshair in 2D, or a blue-cone cursor in 3D.
  2. Position the cursor then click to anchor the starting point for the body; continue to anchor a series of vertex points that define the polygonal shape of the body.
  3. After placing the final vertex point, right-click or press Esc to complete placement of the body. There is no need to "close" the polygon as the software will automatically complete the shape by connecting the start point to the final point placed.
  4. While defining the shape, use Shift+Spacebar to cycle through various corner modes. Modes available are any angle, 45°, 45° with arc, 90°, and 90° with arc. Arcs can be increased or decreased in radius using Shift+. (period) or Shift+, (comma), respectively. Use the Spacebar to toggle the direction of the corner.
When an extruded 3D body object is selected, editing handles are displayed at each vertex. When the cursor changes to arrows over a handle, click and drag to move the vertex. When this cursor appears over the middle of an edge, click&drag to add a vertex to that edge and move it.
  1. Use the Backspace key while in placement mode to remove the last placed vertex point. Repeatedly use Backspace to 'unwind' the outline for the polygon back to the initial starting point. You can design and add more 3D bodies for further component detail. Continue placing further 3D bodies or click Cancel or press Esc to exit placement mode. 

DIP-14 3D representation

  1. To view the 3D body in 3D at any time, press 3 to enter 3D viewing mode. If you cannot see the 3D body, press L to open the View Configuration panel. Ensure the 3D option is set to On in the General Settings region on the View Options tab.

Interactively Creating 3D Bodies

Interactively creating 3D body objects from a footprint is very similar to the manual method. The basic difference is to use Altium Designer to detect closed shapes that can be used to "extrude" into 3D bodies from the existing objects that comprise the footprint details. This is accomplished through the Component Body Manager dialog.


Only closed polygons will create 3D body objects.

The Component Body Manager dialog is used to define a 3D body for the transistor package TO-39. Using this approach is easier than attempting to define the shape manually because of the curved shape and orientation tab of the package body. To use the dialog:

  1. Make the DIP14 footprint the active footprint in the PCB Library panel.
  2. Select Tools » Manage 3D Bodies for Current Component to open the Component Body Manager dialog.


  1. To create a shape that follows the outline defined on the component overlay, click to select Polygonal shape created from primitives on TopOverlay. Click the entry in the Body State column to add the component, set the Registration Layer to the mechanical layer on which the body object should be placed (Mechanical 1 in this case), set the Overall Height to a suitable value, then click the entry in Body 3D Color to open the Choose Color dialog and select a suitable color.
Scroll through the list to select any closed polygons that you want to use to define the component model.
  1. Close the Component Body Manager dialog. The 3D body shape will appear on the component. Save the library.
  2. To edit a 3D body, right-click on it in the PCB editor then select Component Actions » Manage 3D Bodies from the context menu to open the Component Body Manager dialog. You also can use the PCBLIB List panel (shown in the following image) to display 3D bodies and edit them directly.

Importing a STEP Model as a 3D Body

Many component vendors supply detailed 3D models for use in popular mechanical CAD packages. Altium Designer can import 3D STEP models (.step or .stp), SolidWorks parts (*.SldPrt), and Parasolid Models (*.x_t and *.x_b) directly into a component footprint. This saves time in creating the model yourself and also may provide a more sophisticated model.

Linked Models

Linked models are not supported in the PCB library editor. Embedded models are supported.

Importing Models

To import a model, perform the following steps:

  1. Click Place » 3D Body (shortcut P, B) from the main menus or click  on the Active Bar to open the Properties panel in 3D Body mode.
  1. In the 3D Model Type region, select Generic.
  2. In the Source region, select Embed Model. Click Choose to search for and select the desired .step or .stp file. 
  3. The 3D body appears floating on the cursor.
  4. Click in the design space to place the 3D body object with the selected model loaded into it.

Positioning and Orienting Models

When a model has been imported, the placeholder 3D body re-sizes to house the model. The model may not be oriented correctly in relation to the axes of the PCB document due to the origin used in the originating application. There are several methods for graphically positioning models, using reference points (known as snap points) placed on the model to manipulate it and using faces or surfaces on the model in relation to the board. 

Adding Footprints from Other Sources

You can copy existing footprints into your PCB library. The copied footprint can then be renamed and modified to match the specifications required. The following are different ways to copy existing footprints to your PCB library:

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

Compiling Component Footprints

As in the schematic library editor, there are a series of reports that you can run to check that the footprints have been created correctly and identify which components are in the current PCB library. To compile all components in the current PCB library, run the Component Rule Check report. The Component Rule Check tests for duplicate primitives, missing pad designators, floating copper, and inappropriate component reference. To run the Component Rule Check:

  1. Save your library file before running any of these reports.
  2. Select Reports » Component Rule Check (shortcut R, R) to open the Component Rule Check dialog.

  1. Check all the boxes available then click OK. A report titled PCB<libraryfilename>.ERR is generated and opens in the Text Editor. Any errors will be noted.
  2. Close the report to return to the PCB library editor.

Creating an Integrated Library

In this tutorial, you have:

  • Created an Integrated Library Package - the source project for a compiled integrated library.
  • Added a new schematic library to the Library Package and created schematic components in it.
  • Added a new PCB footprint library to the Library Package, created footprints in it and created a 3D model.
  • Learned how to handle a number of special footprint requirements.

The final task is to compile the Library Package to create an integrated library, which creates a single file that includes the components and all their referenced models. Even if we do not want to use the integrated library and prefer to work directly from the source library and model files, there is an incentive to compile the Library Package. Compiling will perform an extensive set of checks on the components and the component-to-model relationships.

To compile the Library Package:

  1. Compile the source libraries and model files in the library package into an integrated library by selecting Project » Compile Integrated Library with the *.LibPkg selected in the Projects panel. Any errors or warnings found during compilation are displayed in the Messages panel. Double-click on an error in the Messages panel to view more information and jump to the component. Fix any inconsistencies in the individual source libraries then recompile the integrated library.
  2. A new Integrated Libraryname.IntLib is generated, saved in the output folder selected in the Options tab of the Project Options dialog. The new integrated library is automatically added to the installed libraries list and displays in the Installed tab of the Available File-based Libraries dialog, ready to use.
You also can create an integrated library from a completed project using the Design » Make Integrated Library command. This will first create the source libraries and then the integrated library.

Glossary

The following terms are used in this tutorial.

Component

A component is a physical device that is placed on the board, e.g., the integrated circuit or resistor. Within these components, there may be either a single part or a set of parts that are packaged together.

3D body

A 3D body is a polygonal-shaped object that can be added to a footprint on any enabled mechanical layer. It can be used to define the physical size and shape of a component in the horizontal and vertical planes, which enables more controlled component clearance checking and better 3D visualization. 3D body objects also act as placeholders for imported models in the component footprint or as non-PCB mounted, free-floating objects, such as housings and assemblies.

Designators

Designators are unique identifiers that are used to distinguish one component from another in a PCB. They can be alpha, numeric, or a combination of both. Pads also have unique designators that correspond to the component pin numbers.

Footprint

A footprint defines (or models) the space required by the component to mount it on the PCB. The footprint model of a component is stored in a PCB library. A footprint may contain pads for connecting to the pins of a device and a physical outline of the package created from track and/or arc segments on the silkscreen (overlay) layer. Device mounting features may also be included. Footprints in the PCB library have no designator or comment. They become components when placed on a PCB sheet where the designators and comments are allocated.

Library

A schematic library is a set of components and its parts are stored on individual sheets. A PCB library contains the component footprints. Each library type has its own editor. Integrated libraries combine schematic libraries with their related models and cannot be edited directly by the library editors.

Object

An object is any individual item that can be placed in the library editor design space.

Pads

Pads are normally used in a footprint to create connection pads for component pins.

Part

A part is a collection of graphical objects that represent one part of a multi-device component. Parts are stored in separate sheets within components in the schematic component libraries.

Pins

Component pins give a component its electrical properties and define connection points on the component.

If you find an issue, select the text/image and pressCtrl + Enterto send us your feedback.
Примечание

Набор доступных функций зависит от вашего уровня доступа к продуктам Altium. Ознакомьтесь с функциями, включенными в различные уровни Подписки на ПО Altium, и функциональными возможностями приложений, предоставляемых платформой Altium 365.

Если вы не видите в своем ПО функцию, описанную здесь, свяжитесь с отделом продаж Altium, чтобы узнать больше.

Content