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

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

Take, for example, a part, module or sublayout that in general you cannot modify. However, Flux allows you to override this default behavior and modify objects or parts you consume using the !important flag when added onto specific rules. Simply adding the !important flag to a rule will ensure the flagged rule is granted.

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.

A 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.

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

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. Having a lot of modules or sublayouts in your project may lead to potentially too much text that you may want to reduce.

Simply 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 essentially adds a rule that disables the text, but uses the !important flag’s feature to ensure that this rule is granted. See here for a full tutorial.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard