Managing units

Work in the units that your team and your fabricator use.

This page shows how to work with units in Flux. You can set the default units for the whole project, for one object, or for a group of objects.

When you type a length in Flux, you can type the unit after the value. For example, to set the position of an object (a 2D vector), type 2mm 3in. This sets its position 2 mm horizontally and 3 inches vertically from its origin.

Default Units

The default unit in Flux is millimeters. Rules and other elements that need a numerical value use millimeters, unless you change the unit. For example, if you set Dimension Unit to mm and then type 2 2 for Position, Flux uses 2 mm 2 mm.

Change a Project’s Default Units

Ask Flux to set the default units of the project.

Set the default units of this layout to mil.

You can also do it in the editor. To change the default units of the whole project, add a Dimension Unit rule to the Layout object in the objects panel. Do this at the start of your PCB layout. When you change the default units of a project, all values without a unit change to the new unit.

Changing Units for a Specific Object

Ask Flux to set the units of one object or of a group of objects.

Set the Dimension Unit rule of the Nets object to mm.
Use inches as the default unit for the mounting hole footprint.

You can also do it in the editor. To change the units of one object, add a Dimension Unit rule under the Object-Specific Rules and select the units.

To change the default units for a group of objects that have a common parent, add the rule to the parent. All the child objects of that parent then use these default units.

Working with Units Example

Ask Flux to set up the units for the whole example in one request.

Set the layout default units to mil, and set the Nets object to use mm.

In this example, the whole project uses mils, but the net and trace values use mm. Add these rules:

  1. Add the Dimension Unit rule as an Object-Specific Rule to the Layout object, and set it to mil. All values without a unit then use mils. Do this at the start of the PCB layout.

  2. Add the Dimension Unit rule as an Object-Specific Rule to the Nets object, and set it to mm. All traces and GND planes then use millimeters as their default unit.