Query_Lang-PCBFunctions_MembershipChecks_OnGridOnGrid_AD
利用できる機能は、Altium 製品のアクセスレベルによって異なります。Altium Designer ソフトウェア サブスクリプション の様々なレベルに含まれる機能と、Altium 365 プラットフォーム で提供されるアプリケーションを通じて提供される機能を比較してください。
ソフトウェアの機能が見つからない場合は、Altium の営業担当者に連絡して 詳細を確認してください。
Parent page: PCB Query Functions - Membership Checks
Summary Copy Link Copied
Returns all objects whose X1 and Y1 properties comply with the Query.
Syntax Copy Link Copied
OnGrid(X1 : Number,Y1 : Number) : Boolean/Boolean_String
Each instance of Distance_String is a numerical string that specifies a distance in the PCB (Library) file. To be returned, an object's X1 property has to be an integral multiple of the first distance specified, and its Y1 property has to be an integral multiple of the second distance specified.
X1 and Y1 specify coordinates in the PCB (Library) file. To be returned, an object's X1 property has to be an integral multiple of the first value specified, and its Y1 property has to be an integral multiple of the second value specified.
Example Usage Copy Link Copied
OnGrid(25,25)
OnGrid(25,25) = True
OnGrid(25,25) = 'True'
Returns all objects whose X1 property is an integral multiple of 25mil and whose Y1 property is an integral multiple of 25mil.
OnGrid(5,100)
OnGrid(5,100) = True
OnGrid(5,100) = 'True'
Returns all objects whose X1 property is an integral multiple of 5mil and whose Y1 property is an integral multiple of 100mil.