Criteria

Plans: Free CAD Tools Geo Tools Urban Highways Aero
Command: CAPCAD_CRITERIA, CAPCAD_CRITERIA_MATERIAL, CAPCAD_CRITERIA_DATASET Updated 2026-11-19 Also in: Español Português
Ask about this page
Answers from this page only. General assistant
What it is CapCad's layer of design and material directives: rules that, given the alignment's properties at a station and the sign being placed, return the value the norm requires there
Commands CAPCAD_CRITERIA · CAPCAD_CRITERIA_MATERIAL · CAPCAD_CRITERIA_DATASET: the three open the same Criteria window
Form CriteriaWorkbenchForm, title Criteria: resizable, one window at a time. Modeless in AutoCAD; modal in the other hosts
Where the sets are chosen The window's Project page, or the Project Manager: both show and save the same two choices, Technical and Materials
Hosts AutoCAD, BricsCAD, GstarCAD, ZWCAD and ARES Commander

Style takes care of the deliverable; criteria take care of the directive. The style says what the project looks like: layers, sheets, reports. The criterion says what the norm requires at that point of the road, given the speed, the traffic volume, the road class and the sign itself.

  • The norm becomes readable rules, not code. Each item is a short list of "if … → …" rules, or a band table, written in words you can read: the first true rule wins.
  • Per station, not per drawing. The input comes from the alignment's properties, which change along the road, so the result changes with them.
  • Two choices per project. One list of technical sets and one of material sets, in the order you want; a project that has not chosen follows its style, and the country's own set answers whatever is left.
  • A check before you draw. One page lists what is missing, which set answers each item the commands read, and which commands read it.
  • Try a rule without drawing. Type a sign code and the alignment values, and the window shows which rule holds and what it returns.
  • Your own set in one click. CapCad's sets are never edited in place: Duplicate to edit gives you a copy that becomes yours.

What a criterion is

CapCad separates two things that usually live together in an office:

  • Style organises the deliverable: layers, sheets, reports, the look of the signing.
  • Criterion organises the design directive and the material: what the norm requires on that stretch of road.

A style mistake is "the title block is wrong". A criterion result is "at this station, at this design speed, the edge line is the one with cadence 12" or "at this traffic volume, the sign substrate is that one".

Criteria live in sets. A technical set carries the design directives (letter heights, sign sizes, edge-line layers by speed…); a material set carries what goes into the sign (substrate, film, post…). Each item of a set has a name, the alignment or sign properties it reads and the results it writes.

The Criteria window

CAPCAD_CRITERIA, CAPCAD_CRITERIA_MATERIAL and CAPCAD_CRITERIA_DATASET open the same window. Running any of them with the window already open brings it to the front and reloads the sets. The rail on the left switches pages; the line under the first three separates the project's choices from the lists behind them.

# Page What it shows
1 Project The project's two choices, and the check
2 Technical Every technical set, as a tree: each set opens to its items
3 Materials Every material set, and first of all basic.constants, the project's fixed values
4 Data types The value lists the items use (an id and a label per value)
5 Variables The names the rules use, and where each takes its value from, in order: the first source that answers wins
6 Learn The learning page

The Project page

Criteria, Project page

# Control What it does
7 Change... (Technical) Opens the list of technical sets: pick one, (none), Use the style's (listed when the style names a set) to go back to the style's set, or Several, in order... to tick several sets and order them. The card shows the choice; from the project's style under it says the value comes from the style
8 See the rules (Technical) Goes to the Technical page
9 Change... (Materials) The same for the material sets. With no material set the card reads constants: the project's fixed values still apply
10 See the rules (Materials) Goes to the Materials page
11 Check again Runs the check again, for instance after editing the alignment or the style
12 Check list Problems first (✖ errors, ! warnings), then every item the commands read with the set that answers it (✓), then notes (i). Hovering an answered item shows which commands read it

The check compares the project's choices with what the commands read, the alignment's properties and the style's outputs. When the country's set lacks items, one line lists them, and the commands use their own values for those. With no alignment or no style, a note says that part was not checked.

With no project folder, the choices are saved in the drawing, and the window says so.

The Technical and Materials pages

Criteria, Technical page

# Control What it does
13 Country only Ticked (the default): hides the sets made for another country. Unticked: lists every set
14 Search Narrows the tree to the sets whose name, or one of whose items, contains the text; a set found by an item opens on it
15 The tree The sets, each opening to its items. Bold marks a set the project uses. Selecting a set shows its first item; selecting an item shows its rules. The tooltip says where the set comes from (Built-in, Library, CapCad cloud, My cloud, User, Project). Right-click: Use in the project, Add at the end of the project's list, Edit... or Duplicate to edit.... Double-clicking an item edits its set
16 New set Opens the set editor on an empty set (Technical and Materials pages only)
17 Edit / Duplicate to edit Opens the set editor on the selected set. On a set that comes with CapCad the button reads Duplicate to edit: it makes your own copy to edit, and the original does not change
18 Show JSON / Hide JSON Shows the selected set, data type or variable as text, with a Copy button
19 The rules The item's rules as cards: if a condition → the results; else for the last one. N rules · the first true one wins heads the list. The card that holds in the test is outlined and ticked
20 Reads from the alignment The alignment properties the item reads, with ✓ when the alignment has a value, missing when it does not, (no alignment) without one. Clicking a property closes the window and opens the alignment properties on it
21 Writes into the style The results the item writes, and where the style puts them: ✓ attribute, ✓ property set, ✓ attribute + pset, internal (a value other criteria use; it does not go into the drawing) or not written, in red, when the style has nowhere to put it
22 The table Shown instead of the cards for an item written as a band table: one line per band of the input, one column per result

The Test box under 21 has one box per value the rules need: the sign code (placa.codigo) and each alignment property they use. Type or pick the values and the box says rule N → and the results, or No rule holds.

On the Materials page, basic.constants lists the project's fixed values: they apply before the material sets and replace the value typed on the sign. Click a row to change it; the values are saved in the project folder, so a drawing with no project folder asks you to set the project in the Project Manager first.

Where a set comes from

Sets come in layers. From the highest to the lowest: the project's own sets (in the project folder), the user's, the user's cloud, CapCad's cloud, the library and the sets built into CapCad. A set with the same name in a higher layer replaces the lower one, so a project can carry its own version of a country set. A file with an error is skipped, the lower set is kept, and the window's status line names the file.

Which set answers

When a command asks for an item, CapCad looks in the project's technical list, in its order, and takes the first set that carries the item; then in the default set of the active country profile. A project that has not chosen follows the sets named in its style. When no set carries the item, the command keeps its own value: a criterion never blocks a command.

Band tables

An item written as a table has two columns per row: the input value and the result. It is read in two different ways, according to what is in the first cell.

Numeric table: bands. When the first column of the first row is a number, each row is the lower bound of a band:

40,SINA_HOR_AM_TA8_LFO3
60,SINA_HOR_AM_TA12_LFO3
80,SINA_HOR_AM_TA16_LFO3

Band resolution

What the table above returns for each speed from 20 to 120 km/h, produced by running CapCad's own resolver. Note the start: below the first bound the criterion returns empty, not the first row.

That detail is deliberate: a 30 km/h road, on the table above, does not get the 40 row. The criterion does not answer, and whoever called it uses the value the user chose. From the last bound upwards, the result is the last row's: 120 km/h returns the same thing as 80.

Text table: keys. When the first cell is not a number, the whole table is read as text keys, compared exactly (but case-insensitively):

Rural,SINA_HOR_BR_TA12_LBO
Urban,SINA_HOR_BR_TA6_LBO

Rural and rural find the same row; Local finds nothing and returns empty.

Expressions. A table containing an equals sign (=) anywhere is treated as an expression rather than a table. Expression tables are not available in this version: the criterion returns empty.

Where criteria are used

Edge and centre lines, by speed band

In the Alignment Manager, Lanes tab, the Criterion combo partitions the alignment by design-speed bands before drawing, and each stretch consults the item matching the line it is about to draw:

Line drawn Item consulted
Left edge line VelocidadeDiretriz.BordoEsqLayer
Right edge line VelocidadeDiretriz.BordoDirLayer
LFO-2 VelocidadeDiretriz.Lfo2Layer
LFO-3 (stud line) VelocidadeDiretriz.Lfo3TachasLayer
LFO-4 VelocidadeDiretriz.lfo4cadenciaLayer
LMS-2 VelocidadeDiretriz.Lms2cadenciaLayer

The result is the layer name to use on that stretch, and since a CapCad layer name is a sentence (SINA_HOR_AM_TA12_LFO3 already states colour, cadence and function), choosing the layer is choosing the marking. With no speed band defined on the alignment, the Manager says No design-speed bands found on the alignment — the lanes are built unpartitioned. and draws everything with one layer.

Everything else

Signs, posts, reports and the other commands read their items the same way. The Check list on the Project page is the place to see them: each answered item, the set that answers it and, in its tooltip, the commands that read it.

Capvars: a criterion inside a string

So that one field can take either a literal value or a criterion, CapCad uses capvars: an @ followed by the criterion's name, inside any text.

<@VDM.PlacaSubstrato@>

The reading is: find the first @ and take the longest run of letters, digits, _ and . after it; the first of them must be a letter. What came before and what comes after are preserved, and the resolved value goes in between. A text without @ comes back untouched: that is how the same parameter accepts either SINA_HOR_AM_LFO2 or @VelocidadeDiretriz.Lfo2Layer.

The closing @ is not part of the syntax: there is no end delimiter. In <@Name@>, the token is Name, with < before and @> after.

Remembered between sessions

The project's two choices, saved in the project (or in the drawing, without a project folder), and the values of basic.constants. The window itself keeps nothing: it opens on the Project page every time.

Notes

  • Below the first bound, a numeric table returns empty. This is deliberate, but it surprises anyone expecting the first row to hold "for everything up to 60". If you want it to, start the table at 0.
  • A table with = in any cell becomes an expression, and those return empty in this version. An equals sign inside a description or a layer name, dropped into the table by mistake, switches the whole item off.
  • An item's name is the whole pair. Lfo2Layer on its own finds nothing: the name is VelocidadeDiretriz.Lfo2Layer.
  • A criterion is not the same as the curve criteria. The radius and superelevation limits the curve analysis applies are that command's own tables, and do not go through this window.
  • Clicking an alignment property closes the window. The alignment properties open on that property; run the command again to come back.