Skip to content

Authoring

Look up operations by task. Import names from fabcheck unless noted otherwise. All examples use synthetic layers and dimensions.

Only APIs available in this release are shown. Unsupported options are rejected when building a deck, and export checks the saved graph again.

Notation

a, b, mask, and boundary are Regions; e is Edges; p is EdgePairs; n is Number. Calls show required arguments and common options. Lengths use deck units, areas their square, angles degrees, and density fractions.

Find an operation

I need to… Go to What it does and why
Start a deck, declare layers, register rules Deck and rules Use Deck and layer declarations to build the deck, then register each named rule with its finding geometry.
Check width, spacing, notch, enclosure, overlap Distance checks Use distance checks when the requirement is a physical gap or material thickness, rather than a polygon's total area.
Combine, subtract, normalize, or select polygons Booleans and topology, Polygon selection Use Boolean calls to build new covered areas; use selectors to keep original whole shapes for a later rule.
Grow, shrink, offset, or simplify geometry Sizing and morphology Use sizing steps to make margins, remove narrow features, or fill gaps. Keep the chosen operation order because it changes the result.
Check area, permitted sizes, or shape Shape and area checks Use shape and area checks for permitted dimensions, polygon kinds, and overlap.
Work with directed edges or distance markers Edges, Edge pairs Use Edges when individual sides matter and EdgePairs when both sides of a measured gap must stay together.
Check bends, radius, or sharp corners Corners and curves Use corner and radius operations when a rule targets vertex angles or curved bends rather than straight-line spacing alone.
Check density Density and windows Use density checks when the requirement is a fraction of an area covered by material, either overall or in local windows.
Distinguish connected nets Connectivity Use a connection model to choose different rules for material on the same net and on different nets.
Read layout geometry, source records, or references Layouts and hierarchy, Source stream checks Use layout reads to choose source geometry; use source-stream checks to inspect records before merging can hide their original form.
Read labels or inspect ports Text and ports Use text reads for labels and port reads for connection-point metadata. Turn their locations or faces into regions needed by a rule.
Build conditional or measured rules Measurements, Runtime logic and collections Use runtime Numbers and Predicates when the result depends on the input layout; use collection builders for per-object work.
Exempt markers or customize reporting Findings and exemptions Use finding helpers to remove exempt whole markers, clip intended polygon output, or attach measured messages after checking.
Export a deck Exporting Write the validated rules and reference layouts to an .fcd file with deck.write().
Validate, test, or inspect a deck Validation and export Use validation and inspection helpers in tests or integrations.