製造データ生成の効率化
A large variety of outputs can be generated for and from a PCB design, and each output type has its own settings. The best way to manage this multitude of outputs in Altium Designer is to use an Output Job file, or 'OutJob' as it is more commonly known.
An OutJob is simply a pre-configured set of outputs. Each output is configured with its own settings and its own output format, for example output to a file, or to a printer. OutJobs are very flexible – they can include as many or as few outputs as required, and any number of OutJobs can be included in an Altium Designer project. The best approach is to use one OutJob to configure all outputs required for each specific type of output being generated from the project. For example all outputs required to fabricate the bare board go in one OutJob, all outputs required to assemble the board go into a second OutJob, and so on.
OutJobs can also hold validation-type checks, such as ERC and DRC reports. Useful for a final thumbs up check just before generating the outputs, such reports can then be held as a record that the design was ready for release.
Portable in nature, OutJobs can also be re-used between designs -- simply copy the Output Job file from one project to the next one, and reset the Data Source as required.
This article summarizes the key elements of generating output from Altium Designer.
Adding and Defining an Outjob
OutJobs are managed using the OutputJob Editor. Create a new Output Job file by:
- Using the File » New » Output Job File command.
- Right-clicking on the project name in the panel and choosing Add New to Project » Output Job File from the pop-up menu that appears.
Output Job files, when added to a project, appear in the Projects panel under the Settings\Output Job Files
sub-folder. There are essentially 3 steps to configuring an OutJob:
- Add and configure the required outputs – outputs are gathered into functional categories, such as Assembly Outputs, Fabrication Outputs and Report Outputs. Strictly speaking, output itself is obtained by running an associated Output Generator, configured as appropriate, and using a specified document within the project (or the project itself) as its data source.
- Add and configure the required output formats – generation of any given output type requires that output to be mapped to a corresponding (and applicable) output format. This takes the form of either one of the supported Output Containers (PDF, Folder Structure, Video), or Hard Copy (print-based output). Multiple outputs can be mapped to the same container or hard copy, and the user has control over where the output is generated and how (any media-related options associated to the container/hard copy).
- Set the variant choice – Altium Designer allows the outputs of a PCB project to be driven using the base (non-varied) design, or by nominating the use of a defined variant of that design. Either choose a variant per applicable output, or choose a single variant to apply to all applicable outputs in the file.
Adding Outputs to an OutJob
Add a new output of the required type by clicking on the appropriate Add New [type] Output text at the bottom of a category and choosing the required output type from the pop-up menu. Alternatively, choose the relevant command entry from the main Edit menu.
Output types for which the appropriate source data is available in the project, will be listed as available, with all other output types listed as unavailable (grayed-out).
A second menu is provided from which to specify the Data Source – which source document(s) to be used when the output is generated. Only applicable data sources are available for each output, leaving less room for error.
The Data Source depends on the particular output. PCB-related outputs, such as PCB Prints, Gerber Files and Testpoint Reports, will use the PCB design document as the Data Source. The Data Source for a BOM could be a single specific source schematic document, the PCB design document, or all source schematic documents. The latter is represented by the [Project]
entry.
For certain outputs, the Data Source list will include [Project Physical Documents]
. Use this option if the physical design (the design as it will be implemented on the board) must be annotated differently from the logical design (the original schematics). This will be necessary if the design includes Device Sheets, or if it uses Altium Designer’s multi-channel capabilities and a simple, flat annotation scheme is preferred.
Configuring Outputs
Depending on the specific output type, options may be available to configure the associated output generator, providing more control over the generated output. Where configuration options are available, they can be accessed in one of the following ways:
- Double-clicking directly within the row for the required output.
- Right-clicking on the required output and choosing the Configure command from the context menu.
- Selecting the required output and using the keyboard shortcut, Alt+Enter.
- Selecting the required output and choosing the Edit » Configure command.
If multiple outputs are selected, the configuration dialog associated with the last selected (currently focused) output will appear.
Exporting Outputs in an OutJob
When configuring your export output from the Outputs Editor, you can also specify which type of export you desire directly from the Outputs Editor. Right-clicking on [Add New Export] in the Export Outputs region brings up a menu of available options. Once the new type of export is selected, click the available selection (e.g., [PCB Document], [Project], etc.) from the resulting drop-down. You can configure the output by right-clicking on the new export and clicking Configure to open the Export dialog associated with that particular export type.
Defining Output Format
Adding and configuring the outputs for an OutJob defines what is to be generated and how. Definition of where generated output is to be written to is now required, in other words, what format the output is to be generated in. Depending on the type of outputs being generated, this is handled using a combination of Output Containers and Hard Copy.
Output Containers
Outputs can be written (where applicable) to three types of Output Container – a PDF, a specific-format of output file (such as a Gerber file), or a video.
A new OutJob will default to include one of each of these types of containers, named PDF
, Folder Structure
, and Video
. Any number of additional containers of these types can be added – by clicking the [Add New Output Container] text, and their names can be edited for easy identification.
Configuring a Container
Clicking on a container provides access to additional controls, including the ability to configure the container. To do so, click the Change link to access the Settings dialog associated with that particular type of container.
The Settings dialog initially opens in Basic mode, for configuration of the output location – where the container will be created. To access further, more advanced options related to the generation of output into the container, click the Advanced button at the bottom of the dialog.
Output Location
The output location – where the container will be created – is specified in the Output Management region of the container's settings dialog. The location consists of various stages, with each stage defined using a corresponding pop-up, accessed by clicking on that stage.
- Base Path – this stage is used to define the 'root' path of the output container.
By default, this is set to [Release Managed], which means that the Design Data Management system will handle the base path automatically.
A local output path can be defined by switching this stage to [Manually Managed]
and specifying the path accordingly (which can be made relative to the design project).
- Container Type Folder – this stage is used to define a sub-folder based on the type of media container being generated. It is completely optional as to whether this extra 'umbrella' folder is used or not. If used, it can either be named by the system (using the container name or type), or given a custom name, as required, by the designer.
- Output Folder / Output Filename – the function of this stage depends on the output container type for which the output location is being specified. For PDF or Video container types, this stage simply requires entry of the desired filename. By default, multiple outputs generated into the container will be collated into a single file, but the designer has the option to generate a separate file for each output if required.
For the Folder Structure container type, this stage is used to specify a folder for each generated output type. Again, the folder can be named automatically based on the output name or type, or can be customized with a specific prefix. As changes are made to any of the stages in the output location, the preview window of the dialog will dynamically update, allowing the designer to quickly zero-in on a preferred output folder structure. For each defined container, the paths – both vault-based (Release Managed) and local (Manually Managed) – are displayed for quick reference in the main Output Containers region of the OutJob.
Hard Copy - Print Jobs
Certain outputs, including Schematic Prints, Assembly Drawings and BOM, can also be sent directly to a printing device, as Hard Copy. To determine how such hard copy is handled, a Print Job is added and configured.
A new OutJob will default to include a single Print Job, named Print Job
. and targeting the default printer associated with the computer upon which the instance of Altium Designer is running. Any number of additional Print Jobs can be added - by clicking the [Add New Print Job] text, and their names can be edited for easy identification (e.g. the name of the printing device to which the job is associated).
Configuring a Print Job
Clicking on a Print Job provides access to additional controls, including the ability to configure the job. To do so, click the Change link to access the Printer Configuration dialog associated with that particular job. Access to the Printer Configuration dialog can also be made by either double-clicking the Print Job entry, or selecting it, right-clicking and choosing the Properties command.
Linking Outputs to Output Containers and Print Jobs
With the outputs added and configured on the left of the OutJob, and the required Output Containers and Print Jobs defined on the right, the two now need to be mapped – specifying which outputs are to be generated using which container and/or print job.
Each output has an associated Enabled field. This field provides control over whether or not a particular output is included (option enabled) or excluded (option disabled) from a selected Output Container or Print Job.
Once enabled, a green line will connect an output to the selected container/print job. The same output can be included in many output media, for example a BOM can be generated and output as a PDF, as a distinct file, or sent to a printer for immediate hard copy.
In the image above, three outputs have been enabled for generation using the PDF-based Output Container named PDFs. Notice how Testpoint Report, Pick and Place, and Gerber Files outputs do not have an Enabled field, since those output types cannot be written to a PDF file.
As outputs are enabled, they are numbered consecutively. This ordering is used to define the sequence in which the outputs are generated. If creating a single PDF including multiple different outputs, this order determines the sequential content of those outputs with that PDF.
If an output is removed from a container or print job the numbers are re-ordered accordingly. To change the order of enabled outputs, either double-click on the number in the Enabled field of an output and use the available control to 'dial-up' the required number or, alternatively, re-select each output in order.
Variant Choice
Product requirements may warrant the need to produce a variety of similar Printed Circuit Boards that all differ slightly from an underlying base design. For example, standard and deluxe versions of a commercial electronic product may differ in the functionality they offer, with the standard version incorporating a subset of the components used in the deluxe version.
At the design level, Altium Designer enables one or more variations of a board design to be defined using its Variants feature. A variant is simply an alternately assembled 'version' of the original board design.
Variants typically drive applicable assembly-based outputs – the very essence of an Assembly Variant, varying only the assembled board (e.g. which components are fitted or not). However Altium Designer also enables variants to drive certain fabrication outputs, allowing a comment for a component to be varied in a design, and that change fed through to outputs such as Gerbers, ODB++ files, Composite Drill Drawings, Drill Drawing/Guides and Final Artwork Prints.
From within an OutJob, the designer has full control over what is used to drive the defined outputs – either the base (non-varied) design, or a nominated defined variant of that design.
If the outputs are to be generated for a specific variant, then that variant must be specified as part of the configuration of the OutJob. Either choose a variant per applicable output, or choose a single variant to apply to all applicable outputs in the file. This 'variant scope' is determined using the Variant Choice options at the top of an Output Job file.
- Choose a single variant for the whole outputjob file – with this option enabled, simply choose a single variant to drive all applicable outputs in the Output Job file. Specify the variant in the drop-down field to the right. The drop-down lists all defined variants for the active project, as well as the entry
[No Variations]
. - Choose a different variant for each output – with this option enabled, a Variant column will be added to the Outputs region of the OutJob. Use this field to indicate which variant to use on an individual output basis. Again, the drop-down lists all defined variants for the active project, as well as the entry
[No Variations]
. Using this scope setting it is possible to assign different variants to drive different outputs.
To drive the outputs using the base (non-varied) design, use the [No Variations]
entry.
When defining variant usage at the individual output level, if the chosen variant does not allow the variation of fabrication outputs, and the variant is specified for use with a fabrication-based output, the variant entry in the OutJob will be red, and a hover-tip used to flag the situation. Generation of output using the chosen variant will proceed as though the setting [No Variations]
had been chosen. That is, the base (non-varied) design will be used as the source of the output instead.
Output Generation
The configured outputs in an OutJob can be generated either:
- From within the OutJob directly.
- From the Project Releaser.
All outputs can be generated directly from within the active OutJob.
From Output Containers
Selecting an Output Container provides access to the Generate content control. This control is enabled after at least one output is assigned to that container.
Clicking this control will generate each output enabled for generation into the container, in sequence. Alternatively, with the container selected, use one of the following methods to generate content:
- Press the F9 key.
- Right-click and choose the Generate command from the context menu (Run command for a Folder Structure container).
- Use the Tools » Generate command (PDF and Video container types) or the Tools » Run command (Folder Structure container type).
Progress can be viewed from the Status Bar. Generated output will be opened if the option to do so has been enabled as part of the advanced options for the container.
There is no multiple Output Container batch generation process, only those outputs assigned to the currently selected Output Container will be generated. To generate all outputs, select and generate content for each defined Output Container, separately.
Publishing Generated Content
A second control available – Generate and publish – enables the designer to generate the outputs assigned to the selected Output Container, and also publish that output to a defined Publishing Destination.
Publishing Destinations offer the ability to publish data to a storage space, such as Box.net, Amazon S3, an FTP server, or a folder location on a shared network. In terms of distribution and collaboration, this provides an unparalleled advantage in a world where the collective members of the overall 'product team' – the design team, the manufacturing team and all others involved in the process of getting a product from thought to reality – are often dispersed around the globe. All parties have shared (and controlled) access to view, discuss and utilize the data.
To publish, click the command and select from a list of currently defined destinations in the pop-up menu that appears. The output will be generated first to the local path destination, then published. As part of publishing, a prompt will appear asking for a folder (within the target Publishing Destination) in which to store the output. Either browse to an existing folder, specify a new folder, or accept the default folder – named using the type of content for the container, along with a date-time stamp (e.g., PDFs - 10-24-2011 11-32-33 AM
).
Use the Manage Publishing command on the menu to access the Data Management – Publishing Destinations page of the Preferences dialog. From here, new destinations can be defined, or the connections to existing destinations modified.
For released data generated from a board design project, an Altium Vault supports the ability to publish those released documents – generated output from Output Job files assigned to the released project configuration – for any Item Revision, to a defined Publishing Destination.
Publishing data directly from an OutJob simply places a copy of the generated files in a specified sub-folder of the target destination. For high integrity and to facilitate a solid audit trail, generated data should be published after release into a revision of a target Item in an Altium Vault. Such output is tagged (in the filename) with the Item and Revision, enabling all involved to see instantly which output is associated with which revision of the Item to be built (bare board or assembled board).
From Print Jobs
Selecting a Print Job will provide access to Preview and Print controls. These controls will be enabled provided at least one output is assigned to that job.
Print Preview
Use the Preview control to load the assigned outputs for the Print Job into the Print Previewer. Alternatively, with the job selected, use one of the following methods to access the Print Previewer:
- Right-click and choose the command Print Preview from the context menu.
- Use the Tools » Print Preview command.
- Click the Preview button in the Page Setup dialog for the selected (focused) output. Note that this will load only the pages for that particular output, and not all pages for all assigned outputs to the Print Job.
Source documents will be loaded in sequence, and in accordance with options defined in the associated Page Setup dialog.
Controls are provided at the bottom of the Previewer and on its right-click menu, for manipulating the view, accessing printer setup dialogs, printing, copying a page to the Windows clipboard, or exporting the active page as a Windows Metafile.
Printing
Click the Print control to send the output(s) directly to the nominated printing device. Alternatively, assigned output(s) can be printed using one of the following methods:
- Press the F9 key.
- Right-click and choose the Print command from the context menu.
- Use the Tools » Print command.
- Click the Print button in the Page Setup dialog for the selected (focused) output. Note that this will print only the pages for that particular output, and not all pages for all assigned outputs to the Print Job.
- Clicking the Print button in the Print Preview dialog.
The Print control and first three methods above offer direct printing. The last two methods above are indirect printing via the Printer Configuration dialog.
From the Project Releaser
Outputs defined in one or more Output Job files assigned to a configuration of a PCB project are generated when that configuration is released. This generation happens as part of the high integrity release process, with the release data stored in a new, planned revision of a target Item in an Altium Vault. The Project Releaser is the interface used for this to happen.
The Project Releaser can be accessed in the following ways:
- Choosing the Project » Project Releaser command from the main menus (with a source document for the required project open as the active document).
- Right-clicking on the entry for the required project, in the Projects panel, and choosing the Project Releaser command from the context menu.
If Outputs have not been defined before running the Project Releaser, this can be done as part of the release process instead.
From the Project Releaser, click the Options button (lower left-hand corner) to open the Project Release Options dialog. This dialog is used to assign the applicable Outjobs and define how the target data items in the vault (whose revisions receive the generated data) are named when releasing a project. The Release Options tab includes several options under the Output Jobs region for enabling desired output data.
If your project currently has no Output Job file(s) associated to it, the Project Releaser will detect this, and you will be asked if you wish to add default ones. If you opt to do so, the following will be created:
- Fabrication.OutJob - with the following outputs defined:
- Documentation Outputs: PCB Prints
- Fabrication Outputs: Gerber, NC Drill, and IPC-2581
- Validation Outputs: Design Rules Check, Footprint Comparison Report
- Export Outputs: Save As/Export PCB (in ASCII format)
- Assembly.OutJob - with the following outputs defined:
- Documentation Outputs: PCB 3D Print, Schematic Prints
- Assembly Outputs: Pick and Place Report, Assembly Drawings
- Report Outputs: Bill of Materials
- Export Outputs: Export STEP
For more on the release process, visit the Releasing a Design with the Project Releaser page.