Index: drc_query/index.html =================================================================== --- drc_query/index.html (revision 30144) +++ drc_query/index.html (revision 30145) @@ -83,4 +83,25 @@ matter.

Tutorial

+ +

Single expression scripts

+In Example 1, a single query() expression is used: it iterates through all +objects available (@) and evaluates whether the object's hole property is +smaller than a predefined value. This expression can result in three +different outcome for any object: +

+

+Such simple, single-expression DRC rules are common for checks that need +to decide whether every single object matching some criteria passes a test +on its properties. It works for Example 1 because each padstack object +can be checked separately from any other object and the outcome of +a check depends only on properties of the single padstack object and constants. +There is only one iterator used, @, which iterates on all objects of the board. +