Query_Lang-PCBFunctions_MembershipChecks_HasPadHasPad_AD

您正在阅读的是 18.0. 版本。关于最新版本,请前往 Query_Lang-PCBFunctions_MembershipChecks_HasPad((HasPad))_AD 阅读 21 版本

Parent page: PCB Query Functions - Membership Checks

Summary

Returns all pad objects whose full name property complies with the Query.

Syntax

HasPad(PadName : String) : Boolean/Boolean_String

The PadName string specifies the full name that a pad has to match; this consists of an initial substring which specifies the Name property of the pad's parent component (i.e. the component's Designator), followed by a substring that specifies the pad's own Name property (i.e. the pad's Designator). The format will therefore be 'ParentComponentDesignator-PadDesignator'.

Example Usage

Not HasPad('C14-1')
HasPad('C14-1') = False
HasPad('C14-1') = 'False'

Returns all objects except the pad object whose Name property is 1, and which is a child object of the component object whose Name property is C14.

HasPad('U5-11')
HasPad('U5-11') = True
HasPad('U5-11') = 'True'

Returns the pad object whose Name property is 11, and which is a child object of the component object whose Name property is U5.

HasPad('U*-11')
HasPad('U*-11') = True
HasPad('U*-11') = 'True'

Returns all pad objects whose Name property is 11, and which are child objects of component objects whose Name property starts with U.

HasPad('*-1*')
HasPad('*-1*') = True
HasPad('*-1*') = 'True'

Returns all pad objects whose Name property starts with 1, and which are child objects of any component object.

Tips

  1. The single quote characters (') at the start and end of the PadName string are mandatory.
If you find an issue, select the text/image and pressCtrl + Enterto send us your feedback.

软件的功能取决于您购买的Altium产品级别。您可以比较Altium Designer软件订阅的各个级别中包含的功能,以及通过Altium 365平台提供的应用程序所能实现的功能。

如果您在软件中找不到某个讨论过的功能,请联系Altium销售团队以获取更多信息。