AsMils

Now reading version 16.1. For the latest, read: AsMils for version 21

Parent page: Schematic Query Functions - Membership Checks

Summary

For numeric properties of objects (e.g. length, width, radius, etc), this keyword is used to convert the current value - measured in the default workspace units - into imperial units - mil - where 1mil = 0.001inch, which is then tested against the value entered in the expression.

You will need to target a specific object first, within the same Query expression, before using this keyword to effectively convert the specified property's value to mils.

Syntax

AsMils(Keyword : Number) : Number

Example Usage

IsArc And (AsMils(Radius) = 250)
Returns all arc objects that have a Radius property which is 250mil.

IsPort And (AsMils(Height) Between 100 And 120)
Returns all port objects that have a Height property which is greater than, or equal to, 100mil, and less than, or equal to, 120mil.

 

If you find an issue, select the text/image and pressCtrl + Enterto send us your feedback.
Note

The features available depend on your Altium product access level. Compare features included in the various levels of Altium Designer Software Subscription and functionality delivered through applications provided by the Altium 365 platform.

If you don’t see a discussed feature in your software, contact Altium Sales to find out more.