Overview
Design variants describe different assemblies of the same design, such as a development build with debug headers fitted and a production build without them. All variants share one schematic and one board layout; they differ in which parts are fitted and in part properties such as values.
Variants are not branches. To try a different layout or circuit, use a branch instead. A variant that swaps a part for a different one still needs its own electrical and layout check.
Creating Variants
- Open the project and save.
- In the schematic editor's toolbar, open the variant list and choose Add New Design Variant... (or Tools > Variants > Add Design Variant...).
- Enter a Variant name, such as
DEVorPROD, and an optional description. - With the variant selected, set the differences in each part's properties, such as not fitted or a different value.
- Save, and check the parts that change.
Tools > Variants also has Remove Design Variant... and Edit Variant Description.... The board editor's toolbar has the same variant list.
A part marked not fitted keeps its footprint and copper on the board; only the assembly outputs leave it out.
Text Variables in Drawing Sheets
Use these in the title block or any text:
${VARIANT}— the variant name${VARIANT_DESC}— the variant description
Check the printed or plotted sheet to see the right name.
Variant-Aware Properties
Select a variant and open a part's properties to see and change its values for that variant. Compare with the base design to be sure each difference is the one you meant.
Exporting with Variants
- Select the variant you are building.
- In each export dialog, check the Design variant setting where there is one; don't assume it follows your selection.
- Export each variant to its own folder.
- Open the files and check fitted parts, quantities and positions.
- Make sure the BOM and the position file describe the same assembly.
trace-cli comes with the Trace app; install the app and sign in first. Export commands that support variants take --variant NAME, and you can give it more than once with ${VARIANT} in the output path to get a file per variant. Without --variant, the default variant is exported. See Exporting Designs and the CLI reference.
Importing Altium Variants
Importing an Altium project brings in the variants defined in its .PrjPcb. Check the names, fitted parts and changed values after import. See Importing from Other EDA Tools.
BOM Generation with Variants
Tools > Generate Bill of Materials uses the selected variant's fitted parts and your BOM exclusions. Check the rows, quantities and part numbers, and how not-fitted parts are shown.
If a Variant Is Missing or the Output Is Wrong
Check that the right project is open, the variant is saved, and the export used the variant you meant, spelled exactly as in the variant list. Export again to a new folder and check the files before you order.