Query_Lang-PCBFunctions_MembershipChecks_InRegionInRegion_AD
Created: 九月 19, 2015 | Updated: 八月 20, 2021
| Applies to versions: 1.0, 1.1, 2.0, 2.1, 3.0, 3.1 and 3.2
您正在阅读的是 3.2. 版本。关于最新版本,请前往 Query_Lang-PCBFunctions_MembershipChecks_InRegion((InRegion))_AD 阅读 4 版本
Parent page: PCB Query Functions - Membership Checks
Summary
Returns all objects that reside within the area specified by the Query.
Syntax
InRegion(X1 : Number ,Y1 : Number ,X2 : Number ,Y2 : Number) : Boolean/Boolean_String
X1,Y1 and X2,Y2 specify coordinates in the PCB (Library) file. The left and right boundaries of the region are specified by the X1 and X2 parameters, while the lower and upper boundaries of the region are specified by the Y1 and Y2 parameters.
Example Usage
InRegion(12700,4700,13300,5000)
InRegion(12700,4700,13300,5000) = True
InRegion(12700,4700,13300,5000) = 'True'
Returns objects residing within the rectangular region bounded by X1 = 12700 and X2 = 13300, and by Y1 = 4700 and Y2 = 5000; those coordinates are referenced to the absolute origin.
Tips
- Parent component, coordinate, dimension, and Net objects are not returned.
- This keyword is an alias for the InRegionAbsolute keyword.