Layout Rules Modifiers

In addition to standard rules, Flux has a variety of supplemental rule modifiers. These are useful for tweaking the behavior of specific parts or assemblies. See the list below for specific examples.

!important flag

Ask Flux to override a rule on a part, module, or sublayout that you use. Flux adds the !important flag when the override needs it.

Override the pad size of U1 to 0.4 mm by 1.2 mm.
Move the silkscreen designator of the imported connector J3 1 mm up.

You can also do it in the editor:

The !important flag, when added to a rule, forces Flux to override any other rules with the flagged rule.


For example, you usually do not modify a part, module, or sublayout that you consume. Add the !important flag to a rule to override this default and modify those objects. The flagged rule then takes precedence.

One way to see this in action is selecting just the silk text of an object and moving it slightly. This will generate a new Position rule found in the rules sidebar on the left with the !important flag automatically added. The newly generated rule will target the UID of the object (found in the Selector section of the right sidebar).

Another method is locating the object’s UID, and manually creating a new rule. Create a new ruleset from the rules sidebar on the left. Then open the New ruleset sidebar on the right, and enter [uid=objectUID] in the selector section, with objectUID replaced by the object’s unique ID. Then modify the object however you like.

Common applications for this flag include hiding silk text from the PCB editor. This is especially useful for parts with a lot of silk that may add unneeded distraction in the PCB editor. The other main application is when you are consuming sublayouts as opposed to creating one.

The !importantflag works with objects, modules, and sublayouts.

Info

When the !important flag has been added to a rule, a new DRC warning called "Component Overrides" will be created.

Example: Hiding Silkscreen Text on Imported Parts or Sublayouts

Ask Flux to hide the silkscreen text of a part or sublayout.

Hide the silkscreen text of the imported power sublayout.
Hide all silkscreen text on the parts of the sensor module, but keep the designators of the connectors.

To do it in the editor:

The !important flag can be used to override silkscreen visibility. Specifically, some objects that you may import come with a lot of silkscreen text information. Many modules or sublayouts in a project can add too much text.

Double-click the component or sublayout to edit it, and move the desired silkscreen to create an override rule. Add an additional enablerule set to falsewith the !important flag. This adds a rule that disables the text, but uses the !important flag’s feature to ensure that this rule is granted. For a full tutorial, see Silkscreen.