Query_Lang-PCBFunctions_MembershipChecks_HasFootprintHasFootprint_AD
利用できる機能は、Altium 製品のアクセスレベルによって異なります。Altium Designer ソフトウェア サブスクリプション の様々なレベルに含まれる機能と、Altium 365 プラットフォーム で提供されるアプリケーションを通じて提供される機能を比較してください。
ソフトウェアの機能が見つからない場合は、Altium の営業担当者に連絡して 詳細を確認してください。
Parent page: PCB Query Functions - Membership Checks
Summary Copy Link Copied
Returns all component objects whose Footprint property complies with the Query.
Syntax Copy Link Copied
HasFootprint(Footprint : String) : Boolean/Boolean_String
Example Usage Copy Link Copied
HasFootprint('SIP?0')
HasFootprint('SIP?0') = True
HasFootprint('SIP?0') = 'True'
Returns all component objects whose Footprint property starts with SIP and finishes with 0, and includes one other intermediate character. Example compliant footprints include SIP10, SIP20, and SIPQ0.
HasFootprint('DIP*')
HasFootprint('DIP*') = True
HasFootprint('DIP*') = 'True'
Returns all component objects whose Footprint property starts with DIP. Example compliant footprints include DIP8, DIP14, and DIP24N.
Not HasFootprint('IDC16')
HasFootprint('IDC16') = False
HasFootprint('IDC16') = 'False'
Returns all objects except component objects whose Footprint property is IDC16.
HasFootprint('*2*')
HasFootprint('*2*') = True
HasFootprint('*2*') = 'True'
Returns all component objects whose Footprint property includes the character 2. Example compliant footprints include 2012, 2N5001, IDC20, and HDR1X2.
Tips Copy Link Copied
- The single quote characters (') at the start and end of the
Footprint
string are mandatory. - For each returned component object, its associated child objects are also returned.