Query_Lang-PCBFunctions_Fields_ViaSizeViaSize_AD
Parent page: PCB Query Functions - Fields
Summary
Returns all simple via objects whose X Size (All Layers) property complies with the Query.
Syntax
ViaSize : Number
Number
will follow the measurement units currently employed for the document – either Imperial (mil; 1mil = 0.001inch) or Metric (mm; 1mm = 0.001meter).
A specific option for the measurement unit can be specified – overriding the default units specified at the document level – through use of an additional measurement unit-based keyword:
AsMils(
– to specify a via diameter in mil.
) : NumberViaSize
AsMM(
– to specify a via diameter in mm.ViaSize
) : Number
Example Usage
= 40ViaSize
Returns all via objects that have a X Size (All Layers) property which is 40
current measurement units.
>= 0.508ViaSize
Returns all via objects that have a X Size (All Layers) property which is greater than or equal to 0.508
current measurement units.
AsMils(
) Between 30 And 50ViaSize
Returns all via objects that have a X Size (All Layers) property which is greater than or equal to 30mil
and less than or equal to 50mil
.
AsMM(
) < 1.524ViaSize
Returns all via objects that have a X Size (All Layers) property which is less than 1.524mm
.
Tips
- The X Size (All Layers) property is only defined for simple via objects - those with their Stack Mode set to Simple.
- In an Inspector panel the X Size (All Layers) property corresponds to the Via Diameter property, while in the Via dialog this property corresponds to the Diameter property.
- This function is an alias for the ViaDiameter function.