会员检查

Membership Checks 对话框中显示的原理图查询函数
本参考页面详细介绍了 Altium Designer 中原理图与原理图库文档里可用的、来自 Membership Checks 类别的查询语言关键字。若需要某个特定查询关键字的帮助,请使用下面可折叠的章节,或在 Query Helper 或 Filter 面板中高亮(或点击进入)任意关键字,然后按 F1 以立即跳转到其对应章节。
AsCM
摘要
对于对象的数值属性(例如长度、宽度、半径等),此关键字用于将当前值(以默认设计空间单位测量)转换为公制单位——cm(厘米),其中 1cm = 0.01meter(米),然后将转换后的值与表达式中输入的数值进行测试/比较。
语法
AsCM(Keyword : Number) : Number
示例用法
IsArc And (AsCM(Radius) = 0.56)
返回所有具有 Radius 属性且该属性为 0.56cm 的弧线对象。
IsPort And (AsCM(Width) Between 1.27 And 2.79)
返回所有具有 Width 属性的端口对象,且该属性大于或等于 1.27cm 并且小于或等于 2.79cm。
AsDXPs
摘要
对于对象的数值属性(例如长度、宽度、半径等),此关键字用于将当前值(以默认设计空间单位测量)转换为英制单位——DXP Defaults(DXPs),其中 1DXP = 10mils,然后将转换后的值与表达式中输入的数值进行测试/比较。
语法
AsDXPs(Keyword : Number) : Number
示例用法
IsArc And (AsDXPs(Radius) = 21.91)
返回所有具有 Radius 属性且该属性为 21.91DXPs 的弧线对象。
IsPort And (AsDXPs(Width) Between 50 And 150)
返回所有具有 Width 属性的端口对象,且该属性大于或等于 50DXPs,并且小于或等于 150DXPs。
AsInches
摘要
对于对象的数值属性(例如长度、宽度、半径等),此关键字用于将当前值(以默认设计空间单位测量)转换为英寸,然后将转换后的值与表达式中输入的数值进行测试/比较。
语法
AsInches(Keyword : Number) : Number
示例用法
IsArc And (AsInches(Radius) = 0.219)
返回所有具有 Radius 属性且该属性为 0.219in 的弧线对象。
IsPort And (AsInches(Height) Between 0.254 And 0.294)
返回所有具有 Height 属性的端口对象,且该属性大于或等于 0.254in,并且小于或等于 0.294in。
AsMetres
摘要
对于对象的数值属性(例如长度、宽度、半径等),此关键字用于将当前值(以默认设计空间单位测量)转换为米,然后将转换后的值与表达式中输入的数值进行测试/比较。
语法
AsMetres(Keyword : Number) : Number
示例用法
IsArc And (AsMetres(Radius) = 0.01)
返回所有具有 Radius 属性且该属性为 0.01m 的弧线对象。
IsPort And (AsMetres(Width) Between 0.01 And 0.02)
返回所有具有 Width 属性的端口对象,且该属性大于或等于 0.01m,并且小于或等于 0.02m。
AsMils
摘要
对于对象的数值属性(例如长度、宽度、半径等),此关键字用于将当前值(以默认设计空间单位测量)转换为英制单位——mil(密耳),其中 1mil = 0.001inch(英寸),然后将转换后的值与表达式中输入的数值进行测试/比较。
语法
AsMils(Keyword : Number) : Number
示例用法
IsArc And (AsMils(Radius) = 250)
返回所有具有 Radius 属性且该属性为 250mil 的弧线对象。
IsPort And (AsMils(Height) Between 100 And 120)
返回所有具有 Height 属性的端口对象,且该属性大于或等于 100mil,并且小于或等于 120mil。
AsMM
摘要
对于对象的数值属性(例如长度、宽度、半径等),此关键字用于将当前值(以默认设计空间单位测量)转换为公制单位——mm(毫米),其中 1mm = 0.001meter(米),然后将转换后的值与表达式中输入的数值进行测试/比较。
语法
AsMM(Keyword : Number) : Number
示例用法
IsArc And (AsMM(Radius) = 6.29)
返回所有具有 Radius 属性且该属性为 6.29mm 的弧线对象。
IsPort And (AsMM(Height) Between 2.54 And 2.64)
返回所有具有 Height 属性的端口对象,且该属性大于或等于 2.54mm 并且小于或等于 2.64mm。
HasFootprint
摘要
返回每一个与某个封装模型相链接(或引用)的器件对象,且该封装模型的属性满足 Query 条件。
语法
HasFootprint(ModelName : String,CurrentModelOnly : Boolean) : Boolean/Boolean_String
ModelName 字符串用于指定所链接封装模型的 Name 属性。
CurrentModelOnly 参数用于指定所链接的封装模型是否必须是每个器件的 Current Footprint。当其为 False 时,所链接的封装模型不必是 Current Footprint(但也可以是);当其为 True 时,所链接的封装模型必须是 Current Footprint。
示例用法
HasFootprint('SOIC14',False)
HasFootprint('SOIC14',False) = True
HasFootprint('SOIC14',False) = 'True'
返回所有链接到某个封装模型的器件对象,且该模型的 Name 属性为 SOIC14;该模型不必是每个器件的 Current Footprint(但也可以是)。
HasFootprint('DIP14',True)
HasFootprint('DIP14',True) = True
HasFootprint('DIP14',True) = 'True'
返回所有链接到某个封装模型的器件对象,且该模型的 Name 属性为 DIP14;该模型必须是该器件的 Current Footprint。
HasModel
摘要
返回每一个与某个域模型相链接(或引用)的器件对象,且该域模型的属性满足 Query 条件。
语法
HasModel(ModelType : String,ModelName : String,CurrentModelOnly : Boolean) : Boolean/Boolean_String
ModelType 字符串用于指定所链接模型的 Type 属性,并且必须是以下列表中的字符串之一:
- 'PCBLIB' - 使用此字符串以定位一个所链接模型,其 Type 属性为 Footprint。
- 'IBIS' - 使用此字符串以定位一个所链接模型,其 Type 属性为 Ibis Model。
- 'SI' - 使用此字符串以定位一个所链接模型,其 Type 属性为 Signal Integrity。
- 'SIM' - 使用此字符串以定位一个所链接模型,其 Type 属性为 Simulation。
- 'FPGA'- 使用此字符串以定位一个所链接模型,其 Type 属性为 FPGA。
ModelName 字符串用于指定所链接模型的 Name 属性。
CurrentModelOnly 参数用于指定所链接模型是否必须是每个器件的 Current Model。当其为 False 时,所链接模型不必是 Current Model(但也可以是);当其为 True 时,所链接模型必须是 Current Model。
示例用法
HasModel('PCBLIB','SOIC14',False)
HasModel('PCBLIB','SOIC14',False) = True
HasModel('PCBLIB','SOIC14',False) = 'True'
返回所有链接到某个封装模型的器件对象,且该模型的 Name 属性为 SOIC14;该模型不必是每个器件的 Current Footprint Model(但也可以是)。
HasModel('PCBLIB','DIP14',True)
HasModel('PCBLIB','DIP14',True) = True
HasModel('PCBLIB','DIP14',True) = 'True'
返回所有链接到某个封装模型的器件对象,且该模型的 Name 属性为 DIP14;该模型必须是该器件的 Current Footprint Model。
HasModel('SI','RES1',False)
HasModel('SI','RES1',False) = True
HasModel('SI','RES1',False) = 'True'
返回所有链接到某个 Signal Integrity 模型的器件对象,且该模型的 Name 属性为 RES1;该模型不必是每个器件的 Current Signal Integrity Model(但也可以是)。
HasModel('SIM','RESISTOR',True)
HasModel('SIM','RESISTOR',True) = True
HasModel('SIM','RESISTOR',True) = 'True'
返回所有链接到某个 Simulation 模型的器件对象,且该模型的 Name 属性为 RESISTOR;该模型必须是该器件的 Current Simulation Model。
HasModelParameter
摘要
返回每一个与某个域模型相链接(或引用)的器件对象,该域模型包含一个参数对象,且该参数对象的 Parameter Name 与 Value 属性满足 Query 条件。
语法
HasModelParameter(Parameter Name : String,Value : String,CurrentModelOnly : Boolean) : Boolean/Boolean_String
CurrentModelOnly 参数用于指定链接的模型(其中包含符合条件的参数)是否必须是每个元件的 Current Model。当其为 False 时,链接的模型不必是 Current Model(但也可以是);当其为 True 时,链接的模型必须是 Current Model。
用法示例
HasModelParameter('Inductance A','1mH',False)
HasModelParameter('Inductance A','1mH',False) = True
HasModelParameter('Inductance A','1mH',False) = 'True'
返回所有与某个模型相链接的 part 对象,该模型包含一个 parameter 对象,其 Parameter Name 属性为 Inductance A,且其 Value 属性为 1mH。该模型不必是每个 Part 的 Current Model(但也可以是)。
HasModelParameter('Coupling Factor','0.999',True)
HasModelParameter('Coupling Factor','0.999',True) = True
HasModelParameter('Coupling Factor','0.999',True) = 'True'
返回所有与某个模型相链接的 part 对象,该模型包含一个 parameter 对象,其 Parameter Name 属性为 Coupling Factor,且其 Value 属性为 0.999。该模型必须是该 Part 的 Current Model。
HasParameter
摘要
返回所有包含 parameter 对象的 parameter set、part、pin、port、probe 和 sheet symbol 对象,其中该 parameter 对象的 Parameter Name 和 Value 属性符合查询条件。
语法
HasParameter(Parameter Name : String,Value : String) : Boolean/Boolean_String
用法示例
HasParameter('Comment','1K')
HasParameter('Comment','1K') = True
HasParameter('Comment','1K') = 'True'
返回所有包含 parameter 对象的 parameter set、part、pin、port、probe 和 sheet symbol 对象,其中该 parameter 对象的 Parameter Name 属性为 Comment,且其 Value 属性为 1K。
HasPin
摘要
返回所有包含 pin 对象的 part 对象,其中该 pin 对象的 Pin Designator 和 Name 属性符合查询条件。
语法
HasPin(Pin Designator : String,Name : String) : Boolean/Boolean_String
用法示例
HasPin('7','GND')
HasPin('7','GND') = True
HasPin('7','GND') = 'True'
返回所有包含 pin 对象的 part 对象的所有子对象,其中该 pin 对象的 Pin Designator 属性为 7,且其 Name 属性为 GND。
HasSheetEntry
摘要
返回所有包含 sheet entry 的 sheet symbol 对象,其中该 sheet entry 的 Name 属性符合查询条件。
语法
HasSheetEntry(Sheet Entry Name : String) : Boolean/Boolean_String
用法示例
HasSheetEntry('CLK')
HasSheetEntry('CLK') = True
HasSheetEntry('CLK') = 'True'
返回所有包含 sheet entry 对象的 sheet symbol 对象,其中该 sheet entry 对象的 Name property 为 CLK。
InComponent
摘要
返回其 Component Designator 属性符合查询条件的 part 对象。
语法
InComponent(Component Designator 1 : String,Component Designator 2 : String,...,Component Designator n : String) : Boolean/Boolean_String
用法示例
InComponent('U1')
InComponent('U1') = True
InComponent('U1') = 'True'
返回其 Component Designator 属性为 U1 的 part 对象。
InComponent('U1','J1','R1')
InComponent('U1','J1','R1') = True
InComponent('U1','J1','R1') = 'True'
返回其 Component Designator 属性为 U1、或 J1、或 R1 的 part 对象。
注意事项
-
不会返回所返回 part 对象的子对象 。
-
该关键字是 InPart 关键字的别名。
InPart
摘要
返回其 Component Designator 属性符合查询条件的 part 对象。
语法
InPart(Component Designator 1 : String,Component Designator 2 : String,...,Component Designator n : String) : Boolean/Boolean_String
用法示例
InPart('U1')
InPart('U1') = True
InPart('U1') = 'True'
返回其 Component Designator 属性为 U1 的 part 对象。
InPart('U1','J1','R1')
InPart('U1','J1','R1') = True
InPart('U1','J1','R1') = 'True'
返回其 Component Designator 属性为 U1、或 J1、或 R1 的 part 对象。
注意事项
-
不会返回所返回 part 对象的子对象 。
-
该关键字是 InComponent 关键字的别名。
InSheetSymbol
摘要
返回其 Sheet Name 属性符合查询条件的 sheet symbol 对象。
语法
InSheetSymbol(Sheet Name : String) : Boolean/Boolean_String
用法示例
InSheetSymbol('Accelerometer')
InSheetSymbol('Accelerometer') = True
InSheetSymbol('Accelerometer') = 'True'
返回其 Sheet Name 属性为 Accelerometer 的 sheet symbol 对象。
注意
不会返回所返回 sheet symbol 对象的子对象。
Object_AreaColor
摘要
返回每个 harness connector、port 和 sheet symbol 对象的所有子对象,其中其 Fill Color 属性符合查询条件。
语法
Object_AreaColor(Parent) : Numeric_String
Object_AreaColor(Parent) : Number
特定数字对应的颜色可由以下关系推导得出:
65536 * Blue + 256 * Green + Red
其中 Blue、Green 和 Red 分量的取值范围均在 0 到 255 (含)之间。
当 Object_AreaColor 关键字可以与 Number 结合使用时,可以使用以下结构分别计算 Fill Color 属性的 Blue、Green 和 Red 分量的值:
- Blue = Fill Color Div 65536
- Green = Fill Color Div 256 Mod 256
- Red = Fill Color Mod 256
用法示例
Object_AreaColor(Parent) = '0'
Object_AreaColor(Parent) <> '' && Object_AreaColor(Parent) = 0
返回每个父对象的所有子对象,其中其 Fill Color 属性为 0(对应 Blue = 0、Green = 0、Red = 0)。
Object_AreaColor(Parent) = '16711680'
Object_AreaColor(Parent) > '' && Object_AreaColor(Parent) = 16711680
返回每个父对象的所有子对象,其中其 Fill Color 属性为 16711680 (对应 Blue = 255、Green = 0、Red = 0)。
Object_AreaColor(Parent) <> '16777215'
返回所有对象 except 每个父对象的子对象,其中其 Fill Color 属性为 16777215 (对应 Blue = 255、Green = 255、Red = 255)。
Object_AreaColor(Parent) > '' && Object_AreaColor(Parent) Div 65536 >= 96 && Object_AreaColor(Parent) Div 256 Mod 256 Between 64 And 192 && Object_AreaColor(Parent) Mod 256 <= 128
返回除 part 之外的每个父对象的所有子对象,其中其 Fill Color 属性满足:Blue 分量值大于或等于 96,Green 分量值大于或等于 64 且小于或等于 192,Red 分量值小于或等于 128。
Object_ObjectKind(Parent) = 'Port' && Object_AreaColor(Parent) Div 65536 <= 192
返回 port 对象的所有子对象,其中其 Fill Color 属性的 Blue 分量值小于或等于 192。
Object_ObjectKind(Parent) = 'Sheet Symbol' && Object_AreaColor(Parent) Mod 256 Between 64 And 192
返回 sheet symbol 对象的所有子对象,其中其 Fill Color 属性的 Red 分量值大于或等于 64 且小于或等于 192。
Object_ArrowStyle
摘要
返回每个 port 对象的所有子对象,其中其 Arrow Style 属性符合查询条件。
语法
Object_ArrowStyle(Parent) = PortArrowStyle_String
Object_ArrowStyle(Parent) <> PortArrowStyle_String
PortArrowStyle_String 必须是以下列表中的某个字符串:
- 'Bottom'
- 'Left'
- 'Left & Right'
- 'None (Horizontal)'
- 'None (Vertical)'
- 'Right'
- 'Top'
- 'Top & Bottom'
用法示例
Object_ArrowStyle(Parent) = 'Left'
返回所有 port 对象的所有子对象,其中其 Arrow Style 属性为 Left。
Object_ArrowStyle(Parent) <> 'Bottom'
返回所有对象 except port 对象的子对象,其中其 Arrow Style 属性为 Bottom。
Object_ArrowStyle(Parent) <> '' && Object_ArrowStyle(Parent) <> 'Right'
Object_ArrowStyle(Parent) > '' && Object_ArrowStyle(Parent) <> 'Right'
Object_ObjectKind(Parent) = 'Port' && Object_ArrowStyle(Parent) <> 'Right'
返回所有 port 对象的所有子对象,except 这些 port 对象的 Arrow Style 属性为 Right。
Object_Color
摘要
返回每个 harness connector、parameter set、pin、port 和 sheet symbol 对象的所有子对象,其中其 Color 属性符合查询条件。
语法
Object_Color(Parent) : Numeric_String
Object_Color(Parent) : Number
特定数字对应的颜色可由以下关系推导得出:
65536 * Blue + 256 * Green + Red
其中 Blue、Green 和 Red 分量的取值范围均在 0 到 255 (含)之间。
当 Object_Color 关键字可以与 Number 结合使用时,可以使用以下结构分别计算 Color 属性的 Blue、Green 和 Red 分量的值:
- Blue = Color Div 65536
- Green = Color Div 256 Mod 256
- Red = Color Mod 256
用法示例
Object_Color(Parent) = '0'
Object_Color(Parent) <> '' && Object_Color(Parent) = 0
返回每个父对象的所有子对象,其中其 Color 属性为 0(对应 Blue = 0、Green = 0、Red = 0)。
Object_Color(Parent) = '16711680'
Object_Color(Parent) > '' && Object_Color(Parent) = 16711680
返回每个父对象的所有子对象,其中其 Color 属性为 16711680 (对应 Blue = 255、Green = 0、Red = 0)。
Object_Color(Parent) <> '16777215'
返回所有对象 except 每个父对象的子对象,其中其 Color 属性为 16777215 (对应 Blue = 255、Green = 255、Red = 255)。
Object_ObjectKind(Parent) <> 'Part' && Object_Color(Parent) <> 16777215
返回每个父对象的所有子对象(部件除外),其 Color 属性为 16777215。
Object_Color(Parent) > '' && Object_Color(Parent) Div 65536 >= 96 && Object_Color(Parent) Div 256 Mod 256 Between 64 And 192 && Object_Color(Parent) Mod 256 <= 128
返回每个父对象的所有子对象(部件除外),其 Color 属性满足:Blue 分量的值大于或等于 96,Green 分量的值大于或等于 64 且小于或等于 192,并且 Red 分量的值小于或等于 128。
Object_ObjectKind(Parent) = 'Parameter Set' && Object_Color(Parent) Div 65536 <= 192
返回参数集对象的所有子对象,其中 Color 属性的 Blue 分量值小于或等于 192。
Object_ObjectKind(Parent) = 'Port' && Object_Color(Parent) Mod 256 Between 64 And 192
返回端口对象的所有子对象,其中 Color 属性的 Red 分量值大于或等于 64 且小于或等于 192。
Object_Comment
摘要
返回所有部件对象的所有子对象,其中 Part Comment 属性符合该查询。
语法
Object_Comment(Parent) : String
使用示例
Object_Comment(Parent) = '1488'
返回所有部件对象的所有子对象,其中 Part Comment 属性为 1488。
Object_ComponentType
摘要
返回所有部件对象的所有子对象,其中 Component Type 属性符合该查询。
语法
Object_ComponentType(Parent) = ComponentType_String
Object_ComponentType(Parent) <> ComponentType_String
ComponentType_String必须是以下列表中的某个字符串:
- 'Graphical'
- 'Jumper'
- 'Mechanical'
- 'Net Tie'
- 'Net Tie (In BOM)'
- 'Standard'
- 'Standard (No BOM)'
使用示例
Object_ComponentType(Parent) = 'Net Tie (In BOM)'
返回所有部件对象的所有子对象,其中 Component Type 属性为 Net Tie (In BOM)。
Object_ComponentType(Parent) <> 'Standard'
返回所有对象 except 部件对象的子对象,其中 Component Type 属性为 Standard。
Object_ComponentType(Parent) <> '' && Object_ComponentType(Parent) <> 'Standard'
Object_ComponentType(Parent) > '' && Object_ComponentType(Parent) <> 'Standard'
Object_ObjectKind(Parent) = 'Part' && Object_ComponentType(Parent) <> 'Standard'
返回所有部件对象的所有子对象,其中 Component Type 属性不为 Standard。
说明
- Component Type 属性仅对部件对象定义。
-
ComponentType_String开头和结尾的单引号字符 (') 是必需的。
Object_CurrentFootprint
摘要
返回每个部件对象的所有子对象,其中 Current Footprint 属性符合该查询。
语法
Object_CurrentFootprint(Parent) : String
使用示例
Object_CurrentFootprint(Parent) = 'DIP14'
返回部件对象的所有子对象,其中 Current Footprint 属性为 DIP14。
Object_CurrentFootprint(Parent) Like 'SIP?*'
返回部件对象的所有子对象,其中 Current Footprint 属性以 SIP 开头,并且后面至少还包含一个字符。
Object_DatabaseTableName
摘要
返回每个部件对象的所有子对象,其中 Database Table Name 属性符合该查询。
语法
Object_DatabaseTableName(Parent) : String
使用示例
Object_DatabaseTableName(Parent) = 'Tantalum_Capacitors'
返回部件对象的所有子对象,其中 Database Table Name 属性为 Tantalum_Capacitors。
Object_DatabaseTableName(Parent) Like '*Res*'
返回部件对象的所有子对象,其中 Database Table Name 属性包含 Res。
Object_Designator
摘要
返回每个部件对象的所有子对象,其中 Component Designator 属性符合该查询。
语法
Object_Designator(Parent) : String
使用示例
Object_Designator(Parent) = 'U2'
返回部件对象的所有子对象,其中 Component Designator 属性为 U2。
Object_Designator(Parent) Like '*Channel*'
返回部件对象的所有子对象,其中 Component Designator 属性包含 Channel。
Object_DesignatorLocked
摘要
返回每个部件对象的所有子对象,其中 Lock Designator 属性符合该查询。
语法
Object_DesignatorLocked(Parent) : Boolean_String
使用示例
Object_DesignatorLocked(Parent) = 'True'
返回部件对象的所有子对象,其中 Lock Designator 属性已启用。
Object_DesignatorLocked(Parent) = 'False'
返回部件对象的所有子对象,其中 Lock Designator 属性已禁用。
Object_DesignItemID
摘要
返回每个部件对象的所有子对象,其中 Design Item ID 属性符合该查询。
语法
Object_DesignItemID(Parent) : String
使用示例
Object_DesignItemID(Parent) = 'LM833'
返回部件对象的所有子对象,其中 Design Item ID 属性为 LM833。
Object_DesignItemID(Parent) Like '*Osc*'
返回部件对象的所有子对象,其中 Design Item ID 属性包含 Osc。
Object_ElectricalType
摘要
返回每个引脚对象的所有子对象,其中 Electrical Type 属性符合该查询。
语法
Object_ElectricalType(Parent) = ElectricalType_String
Object_ElectricalType(Parent) <> ElectricalType_String
ElectricalType_String必须是以下列表中的某个字符串:
-
'HiZ' -
'Input' -
'I/O' -
'Open Collector' -
'Open Emitter' -
'Output' -
'Passive' -
'Power'
使用示例
Object_ElectricalType(Parent) = 'Power'
返回所有引脚对象的所有子对象,其中 Electrical Type 属性为 Power。
Object_ElectricalType(Parent) <> 'HiZ'
返回所有对象 except 引脚对象的子对象,其中 Electrical Type 属性为 HiZ。
Object_ElectricalType(Parent) <> '' && Object_ElectricalType(Parent) <> 'HiZ'
Object_ElectricalType(Parent) > '' && Object_ElectricalType(Parent) <> 'HiZ'
Object_ObjectKind(Parent) = 'Pin' && Object_ElectricalType(Parent) <> 'HiZ'
返回所有引脚对象的所有子对象,except 那些 Electrical Type 属性为 HiZ 的引脚对象。
Object_HasFootprint
摘要
返回每个部件对象的所有子对象:该部件对象链接到(或引用)一个封装模型,并且该封装模型的属性符合该查询。
语法
Object_HasFootprint(Parent,ModelName : String,CurrentModelOnly : Boolean) : Boolean/Boolean_String
ModelName 字符串用于指定所链接封装模型的 Name 属性。
CurrentModelOnly 参数用于指定:所链接的封装模型是否必须是每个部件的当前封装。当其为 False 时,所链接的封装模型不必是当前封装(但也可以是);当其为 True 时,所链接的封装模型必须是当前封装。
使用示例
Object_HasFootprint(Parent,'SOIC14',False)
Object_HasFootprint(Parent,'SOIC14',False) = True
Object_HasFootprint(Parent,'SOIC14',False) = 'True'
返回部件对象的所有子对象:这些部件对象链接到一个封装模型,且该模型的 Name 属性为 SOIC14;该模型不必是每个部件的当前封装(但也可以是)。
Object_HasFootprint(Parent,'DIP14',True)
Object_HasFootprint(Parent,'DIP14',True) = True
Object_HasFootprint(Parent,'DIP14',True) = 'True'
返回部件对象的所有子对象:这些部件对象链接到一个封装模型,且该模型的 Name 属性为 DIP14;该模型必须是该部件的当前封装。
Object_HasModel
摘要
返回每个部件对象的所有子对象:该部件对象链接到(或引用)一个域模型,并且该域模型的属性符合该查询。
语法
Object_HasModel(Parent,ModelType : String,ModelName : String,CurrentModelOnly : Boolean) : Boolean/Boolean_String
ModelType 字符串用于指定链接模型的 Type 属性,并且必须是以下列表中的某个字符串:
- 'PCBLIB' - 使用此字符串来定位 Type 属性为 Footprint 的链接模型。
- 'IBIS' - 使用此字符串来定位 Type 属性为 Ibis Model 的链接模型。
- 'SI' - 使用此字符串来定位 Type 属性为 Signal Integrity 的链接模型。
- 'SIM' - 使用此字符串来定位 Type 属性为 Simulation 的链接模型。
- 'FPGA' - 使用此字符串来定位 Type 属性为 FPGA 的链接模型。
ModelName 字符串用于指定链接模型的 Name 属性。
CurrentModelOnly 参数用于指定:所链接的模型是否必须是每个部件的当前模型。当其为 False 时,所链接的模型不必是当前模型(但也可以是);当其为 True 时,所链接的模型必须是当前模型。
使用示例
Object_HasModel(Parent,'PCBLIB','SOIC14',False)
Object_HasModel(Parent,'PCBLIB','SOIC14',False) = True
Object_HasModel(Parent,'PCBLIB','SOIC14',False) = 'True'
返回部件对象的所有子对象:这些部件对象链接到一个封装模型,且该模型的 Name 属性为 SOIC14;该模型不必是每个部件的当前封装模型(但也可以是)。
Object_HasModel(Parent,'PCBLIB','DIP14',True)
Object_HasModel(Parent,'PCBLIB','DIP14',True) = True
Object_HasModel(Parent,'PCBLIB','DIP14',True) = 'True'
返回部件对象的所有子对象:这些部件对象链接到一个封装模型,且该模型的 Name 属性为 DIP14;该模型必须是该部件的当前封装模型。
Object_HasModel(Parent,'SI','RES1',False)
Object_HasModel(Parent,'SI','RES1',False) = True
Object_HasModel(Parent,'SI','RES1',False) = 'True'
返回部件对象的所有子对象:这些部件对象链接到一个信号完整性模型,且该模型的 Name 属性为 RES1;该模型不必是每个部件的当前信号完整性模型(但也可以是)。
Object_HasModel(Parent,'SIM','RESISTOR',True)
Object_HasModel(Parent,'SIM','RESISTOR',True) = True
Object_HasModel(Parent,'SIM','RESISTOR',True) = 'True'
返回部件对象的所有子对象:这些部件对象链接到一个仿真模型,且该模型的 Name 属性为 RESISTOR;该模型必须是该部件的当前仿真模型。
Object_HasModelParameter
摘要
返回每个部件对象的所有子对象:该部件对象链接到(或引用)一个域模型,并且该域模型包含一个参数对象,其 Parameter Name 和 Value 属性符合该查询。
语法
Object_HasModelParameter(Parent,Parameter Name : String,Value : String,CurrentModelOnly : Boolean) : Boolean/Boolean_String
CurrentModelOnly 参数用于指定:包含符合条件参数的已链接模型,是否必须是每个器件(Part)的“当前模型(Current Model)”。当其为 False 时,已链接模型不必是当前模型(但也可以是);当其为 True 时,已链接模型必须是当前模型。
示例用法
Object_HasModelParameter(Parent,'Inductance A','1mH',False)
Object_HasModelParameter(Parent,'Inductance A','1mH',False) = True
Object_HasModelParameter(Parent,'Inductance A','1mH',False) = 'True'
返回所有器件(Part)对象的所有子对象,这些器件对象链接到一个模型;该模型包含一个参数对象,其 Parameter Name 属性为 Inductance A ,且其 Value 属性为 1mH。该模型不必是每个 Part 的当前模型(但也可以是)。
Object_HasModelParameter(Parent,'Coupling Factor','0.999',True)
Object_HasModelParameter(Parent,'Coupling Factor','0.999',True) = True
Object_HasModelParameter(Parent,'Coupling Factor','0.999',True) = 'True'
返回所有器件(Part)对象的所有子对象,这些器件对象链接到一个模型;该模型包含一个参数对象,其 Parameter Name 属性为 Coupling Factor ,且其 Value 属性为 0.999。该模型必须是该 Part 的当前模型。
Object_HasParameter
摘要
返回所有参数集(parameter set)、器件(part)、引脚(pin)、端口(port)、探针(probe)以及页符号(sheet symbol)对象的所有子对象,这些对象包含一个参数对象,且该参数对象的 Parameter Name 和 Value 属性符合查询条件。
语法
Object_HasParameter(Parent,Parameter Name : String,Value : String) : Boolean/Boolean_String
示例用法
Object_HasParameter(Parent,'Comment','1K')
Object_HasParameter(Parent,'Comment','1K') = True
Object_HasParameter(Parent,'Comment','1K') = 'True'
返回所有参数集、器件、引脚、端口、探针以及页符号对象的所有子对象,这些对象包含一个参数对象,其 Parameter Name 属性为 Comment,且其 Value 属性为 1K。
Object_HasPin
摘要
返回所有器件(part)对象的所有子对象,这些器件对象包含一个引脚(pin)对象,且该引脚对象的 Pin Designator 和 Name 属性符合查询条件。
语法
Object_HasPin(Parent,Pin Designator : String,Name : String) : Boolean/Boolean_String
示例用法
Object_HasPin(Parent,'7','GND')
Object_HasPin(Parent,'7','GND') = True
Object_HasPin(Parent,'7','GND') = 'True'
返回所有器件对象的所有子对象,这些器件对象包含一个引脚对象,其 Pin Designator 属性为 7,且其 Name 属性为 GND。
Object_HasSheetEntry
摘要
返回所有页符号(sheet symbol)对象的所有子对象,这些页符号对象包含一个页入口(sheet entry),且该页入口的 Name 属性符合查询条件。
语法
Object_HasSheetEntry(Parent , Sheet Entry Name : String) : Boolean/Boolean_String
示例用法
Object_HasSheetEntry(Parent,'CLK')
Object_HasSheetEntry(Parent,'CLK') = True
Object_HasSheetEntry(Parent,'CLK') = 'True'
返回所有页符号对象的所有子对象,这些页符号对象包含一个页入口对象,其 Name property 为 CLK。
Object_IeeeSymbolInner
摘要
返回所有引脚(pin)对象的所有子对象,这些引脚对象的 IEEE Symbol Inside 属性符合查询条件。
语法
Object_IeeeSymbolInner(Parent) = IeeeSymbolInner_String
Object_IeeeSymbolInner(Parent) <> IeeeSymbolInner_String
IeeeSymbolInner_String 必须是以下字符串之一:
- 'High Current'
- 'HiZ'
- 'No Symbol'
- 'Open Collector'
- 'Open Collector Pull Up'
- 'Open Emitter'
- 'Open Emitter Pull Up'
- 'Open Output'
- 'Pulse'
- 'Postponed Output'
- 'Schmitt'
- 'Shift Left'
示例用法
Object_IeeeSymbolInner(Parent) = 'HiZ'
返回所有引脚对象的所有子对象,这些引脚对象的 IEEE Symbol Inside 属性为 HiZ。
Object_IeeeSymbolInner(Parent) <> 'Pulse'
返回所有对象 except 引脚对象的子对象,这些引脚对象的 IEEE Symbol Inside property 为 Pulse。
Object_ObjectKind(Parent) = 'Pin' && Object_IeeeSymbolInner(Parent) <> 'Open Emitter'
返回所有引脚对象的所有子对象 except 这些引脚对象的 IEEE Symbol Inside 属性为 Open Emitter。
说明
-
IeeeSymbolInner_String开头和结尾处的单引号字符(')是必需的。 - IEEE Symbol Inside property 仅对引脚对象定义。
Object_IeeeSymbolInnerEdge
摘要
返回所有引脚(pin)对象的所有子对象,这些引脚对象的 IEEE Symbol Inside Edge 属性符合查询条件。
语法
Object_IeeeSymbolInnerEdge(Parent) = IeeeSymbolInnerEdge_String
Object_IeeeSymbolInnerEdge(Parent) <> IeeeSymbolInnerEdge_String
IeeeSymbolInnerEdge_String 必须是以下字符串之一:
- 'Clock'
- 'No Symbol'
示例用法
Object_IeeeSymbolInnerEdge(Parent) = 'Clock'
返回所有引脚对象的所有子对象,这些引脚对象的 IEEE Symbol Inside Edge 属性为 Clock。
Object_IeeeSymbolInnerEdge(Parent) <> 'No Symbol'
返回所有对象 except 引脚对象的子对象,这些引脚对象的 IEEE Symbol Inside Edge property 为 No Symbol。
Object_ObjectKind(Parent) = 'Pin' && Object_IeeeSymbolInnerEdge(Parent) <> 'Clock'
返回所有引脚对象的所有子对象 except 这些引脚对象的 IEEE Symbol Inside Edge 属性为 Clock。
说明
-
IeeeSymbolInnerEdge_String开头和结尾处的单引号字符(')是必需的。 - IEEE Symbol Inside Edge property 仅对引脚对象定义。
Object_IeeeSymbolOuter
摘要
返回所有引脚(pin)对象的所有子对象,这些引脚对象的 IEEE Symbol Outside 属性符合查询条件。
语法
Object_IeeeSymbolOuter(Parent) = IeeeSymbolOuter_String
Object_IeeeSymbolOuter(Parent) <> IeeeSymbolOuter_String
IeeeSymbolOuter_String 必须是以下字符串之一:
- 'Analog Signal In'
- 'Bidirectional Signal Flow'
- 'Digital Signal In'
- 'Left Right Signal Flow'
- 'No Symbol'
- 'Not Logic Connection'
- 'Right Left Signal Flow'
示例用法
Object_IeeeSymbolOuter(Parent) = 'Digital Signal In'
返回所有引脚对象的所有子对象,这些引脚对象的 IEEE Symbol Outside 属性为 Digital Signal In。
Object_IeeeSymbolOuter(Parent) <> 'Bidirectional Signal Flow'
返回所有对象 except 引脚对象的子对象,这些引脚对象的 IEEE Symbol Outside property 为 Bidirectional Signal Flow。
Object_ObjectKind(Parent) = 'Pin' && Object_IeeeSymbolOuter(Parent) <> 'No Symbol'
返回所有引脚对象的所有子对象 except 这些引脚对象的 IEEE Symbol Outside 属性为 No Symbol。
说明
-
IeeeSymbolOuter_String开头和结尾处的单引号字符(')是必需的。 - IEEE Symbol Outside property 仅对引脚对象定义。
Object_IeeeSymbolOuterEdge
摘要
返回所有引脚(pin)对象的所有子对象,这些引脚对象的 IEEE Symbol Outside Edge 属性符合查询条件。
语法
Object_IeeeSymbolOuterEdge(Parent) = IeeeSymbolOuterEdge_String
Object_IeeeSymbolOuterEdge(Parent) <> IeeeSymbolOuterEdge_String
IeeeSymbolOuterEdge_String 必须是以下字符串之一:
- 'Active Low Input'
- 'Active Low Output'
- 'Dot'
- 'No Symbol'
示例用法
Object_IeeeSymbolOuterEdge(Parent) = 'Dot'
返回所有引脚对象的所有子对象,这些引脚对象的 IEEE Symbol Outside Edge 属性为 Dot。
Object_IeeeSymbolOuterEdge(Parent) <> 'Active Low Output'
返回所有对象 except 引脚对象的子对象,这些引脚对象的 IEEE Symbol Outside Edge property 为 Active Low Output。
Object_ObjectKind(Parent) = 'Pin' && Object_IeeeSymbolOuterEdge(Parent) <> 'No Symbol'
返回所有引脚对象的所有子对象 except 这些引脚对象的 IEEE Symbol Outside Edge 属性为 No Symbol。
说明
-
IeeeSymbolOuterEdge_String开头和结尾处的单引号字符(')是必需的。 - IEEE Symbol Outside Edge property 仅对引脚对象定义。
Object_IOType
摘要
返回所有端口(port)对象的所有子对象,这些端口对象的 IO Type 属性符合查询条件。
语法
Object_IOType(Parent) = IOType_String
Object_IOType(Parent) <> IOType_String
IOType_String 必须是以下列表中的某个字符串:
-
'Bidirectional' -
'Input' -
'Output' -
'Unspecified'
示例用法
Object_IOType(Parent) = 'Bidirectional'
返回所有端口对象的所有子对象,这些端口对象的 IO Type 属性为 Bidirectional。
Object_IOType(Parent) <> 'Output'
返回所有对象 except 端口对象的子对象,这些端口对象的 IO Type 属性为 Output。
说明
- IO Type 属性对端口和页入口(sheet entry)对象都有定义,但只有端口对象才可能拥有可由该表达式返回的子对象。
-
IOType_String开头和结尾处的单引号字符(')是必需的。
Object_IsMirrored
摘要
返回所有器件(part)对象的所有子对象,这些器件对象的 Mirrored 属性符合查询条件。
语法
Object_IsMirrored(Parent) : Boolean_String
示例用法
Object_IsMirrored(Parent) = 'True'
返回所有器件对象的所有子对象,这些器件对象的 Mirrored 属性已启用。
Object_IsMirrored(Parent) = 'False'
返回所有器件对象的所有子对象,这些器件对象的 Mirrored 属性已禁用。
说明
Mirrored 属性对 IEEE 符号、器件(part)以及文本字符串(text string)对象都有定义,但只有器件对象才可能拥有可由该表达式返回的子对象。
Object_Length
摘要
返回所有引脚(pin)对象的所有子对象,这些引脚对象的 Length 属性符合查询条件。
语法
Object_Length(Parent) : Numeric_String
Object_Length(Parent) : Number
示例用法
Object_Length(Parent) = '30'
返回所有引脚对象的所有子对象,这些引脚对象的 Length 属性等于 30。
Object_Length(Parent) Between '20' And '40'
返回所有引脚对象的所有子对象,这些引脚对象的 Length 属性大于或等于 20 且小于或等于 40。
Object_Length(Parent) >= '10'
返回所有引脚对象的所有子对象,这些引脚对象的 Length 属性大于或等于 10。
Object_ObjectKind(Parent) = 'Pin' && Object_Length(Parent) < 30
返回所有引脚对象的所有子对象,这些引脚对象的 Length 属性小于 30。
Object_Length(Parent) <> '40'
返回所有对象 except 引脚对象的子对象,这些引脚对象的 Length 属性等于 40。
Object_ObjectKind(Parent) = 'Pin' && Object_Length(Parent) <> 40
返回所有引脚对象的所有子对象 except 这些引脚对象的 Length 属性为 40。
说明
Length 属性仅对引脚对象定义。
Object_LibraryName
摘要
返回所有器件(part)对象的所有子对象,这些器件对象的 Library 属性符合查询条件。
语法
Object_LibraryName(Parent) : String
示例用法
Object_LibraryName(Parent) = 'Miscellaneous Devices.IntLib'
返回所有器件对象的所有子对象,这些器件对象的 Library 属性为 Miscellaneous Devices.IntLib。
Object_LibraryName(Parent) Like 'Miscellaneous*.IntLib'
返回所有器件对象的所有子对象,这些器件对象具有一个 Library 属性,其关联字符串以 Miscellaneous 开头并以 .IntLib 结尾。
注意
Library 属性仅对部件对象定义。
Object_LibReference
摘要
返回所有部件对象的子对象中,其 Symbol Reference 属性符合查询条件的对象。
语法
Object_LibReference(Parent) : String
示例用法
Object_LibReference(Parent) = 'LM833'
返回所有部件对象的子对象中,其 Symbol Reference 属性为 LM833 的对象。
注意
Symbol Reference 属性仅对部件对象定义。
Object_LocationX
摘要
返回所有线束连接器、参数集、部件、引脚、端口、探针和图纸符号对象的子对象中,其 X1 属性符合查询条件的对象。
语法
Object_LocationX(Parent) : Numeric_String
示例用法
Object_LocationX(Parent) = '320'
返回所有线束连接器、参数集、部件、引脚、端口、探针和图纸符号对象的子对象中,其 X1 属性等于 320 的对象。
Object_LocationX(Parent) Between '150' And '430'
返回所有线束连接器、参数集、部件、引脚、端口、探针和图纸符号对象的子对象中,其 X1 属性大于或等于 150 且小于或等于 430 的对象。
Object_LocationX(Parent) >= '250'
返回所有线束连接器、参数集、部件、引脚、端口、探针和图纸符号对象的子对象中,其 X1 属性大于或等于 250 的对象。
Object_LocationX(Parent) < 350
返回所有线束连接器、参数集、部件、引脚、端口、探针和图纸符号对象的子对象中,其 X1 属性小于 350 的对象。
Object_LocationX(Parent) <> '210'
返回所有线束连接器、参数集、部件、引脚、端口、探针和图纸符号对象的子对象中,其 X1 属性不等于 210 的对象。
Object_LocationY
摘要
返回所有线束连接器、参数集、部件、引脚、端口、探针和图纸符号对象的子对象中,其 Y1 属性符合查询条件的对象。
语法
Object_LocationY(Parent) : Numeric_String
示例用法
Object_LocationY(Parent) = '320'
返回所有线束连接器、参数集、部件、引脚、端口、探针和图纸符号对象的子对象中,其 Y1 属性等于 320 的对象。
Object_LocationY(Parent) Between '150' And '430'
返回所有线束连接器、参数集、部件、引脚、端口、探针和图纸符号对象的子对象中,其 Y1 属性大于或等于 150 且小于或等于 430 的对象。
Object_LocationY(Parent) >= '250'
返回所有线束连接器、参数集、部件、引脚、端口、探针和图纸符号对象的子对象中,其 Y1 属性大于或等于 250 的对象。
Object_LocationY(Parent) < 350
返回所有线束连接器、参数集、部件、引脚、端口、探针和图纸符号对象的子对象中,其 Y1 属性小于 350 的对象。
Object_LocationY(Parent) <> '210'
返回所有线束连接器、参数集、部件、引脚、端口、探针和图纸符号对象的子对象中,其 Y1 属性不等于 210 的对象。
Object_Locked
摘要
返回所有线束连接器、参数集、部件、引脚、端口、探针和图纸符号对象的子对象中,其 Locked 属性符合查询条件的对象。
语法
Object_Locked(Parent) : Boolean/Boolean_String
示例用法
Object_Locked(Parent)
Object_Locked(Parent) = True
Object_Locked(Parent) = 'True'
返回所有线束连接器、参数集、部件、引脚、端口、探针和图纸符号对象的子对象中,其 Locked 属性已启用的对象。
Not Object_Locked(Parent)
Object_Locked(Parent) = False
Object_Locked(Parent) = 'False'
返回所有线束连接器、参数集、部件、引脚、端口、探针和图纸符号对象的子对象中,其 Locked 属性已禁用的所有对象 except 。
Object_ObjectKind
摘要
返回所有对象的子对象中,其 Object Kind 属性符合查询条件的对象。
语法
Object_ObjectKind(Parent) = ObjectKind_String
Object_ObjectKind(Parent) <> ObjectKind_String
ObjectKind_String用于指定对象类型,且必须是以下字符串之一:
- 'Harness Connector'
- 'Parameter Set'
-
'Part' -
'Pin' -
'Port' - 'Probe'
- 'Sheet Symbol'
- ''
示例用法
Object_ObjectKind(Parent) = 'Sheet Symbol'
返回所有图纸符号对象的子对象。
Object_ObjectKind(Parent) <> 'Parameter Set'
返回参数集对象的子对象的所有对象 except 。
Object_ObjectKind(Parent) = 'Part'
返回所有部件对象的子对象。
Object_ObjectKind(Parent) = ''
返回所有没有父对象的对象。
注意
ObjectKind_String 开头和结尾处的单引号字符(')是必需的。
Object_Orientation
摘要
返回参数集、部件、引脚和探针对象的所有子对象中,其 Orientation 属性符合查询条件的对象。
语法
Object_Orientation(Parent) = Orientation_String
Object_Orientation(Parent) <> Orientation_String
Orientation_String必须是以下列表中的字符串之一:
-
'0 Degrees' -
'90 Degrees' -
'180 Degrees' -
'270 Degrees'
示例用法
Object_Orientation(Parent) = '90 Degrees'
返回参数集、部件、引脚和探针对象的子对象中,其 Orientation 属性为 90 Degrees 的对象。
Object_Orientation(Parent) <> '180 Degrees'
返回参数集、部件、引脚和探针对象的子对象中,其 Orientation 属性为 180 Degrees 的所有对象 except 。
Object_Orientation(Parent) <> '' && Object_Orientation(Parent) <> '180 Degrees'
Object_Orientation(Parent) > '' && Object_Orientation(Parent) <> '180 Degrees'
返回参数集、部件、引脚和探针对象的子对象中,其 Orientation 属性不为 180 Degrees 的对象。
注意事项
-
Orientation 属性对位号(Designator)、线束连接器类型、IEEE 符号、网络标号(Net Label)、跨页连接器(Off Sheet Connector)、参数、参数集、部件、引脚、电源端口、探针、图纸符号位号、图纸符号文件名以及文本字符串对象均有定义。然而,只有参数集、部件、引脚和探针对象才能拥有可由此表达式返回的子对象。
-
Orientation_String开头和结尾处的单引号字符(')是必需的。
Object_PartId
摘要
返回所有部件对象的子对象中,其 Current Part 属性符合查询条件的对象。
语法
Object_PartId(Parent) : String
示例用法
Object_PartId(Parent) = 'B'
返回所有部件对象的子对象中,其 Current Part 属性为 B 的对象。
Object_ObjectKind(Parent) = 'Part' && Object_PartId(Parent) <> 'A'
返回所有部件对象的子对象中 except 那些 Current Part 属性为 A 的部件对象。
注意
Current Part 属性仅对部件对象定义。
Object_PinShowDesignator
摘要
返回所有引脚对象的子对象中,其 Show Designator 属性符合查询条件的对象。
语法
Object_PinShowDesignator(Parent) : Boolean_String
示例用法
Object_PinShowDesignator(Parent) = 'True'
返回所有引脚对象的子对象中,其 Show Designator 属性已启用的对象。
Object_PinShowDesignator(Parent) = 'False'
返回所有引脚对象的子对象中,其 Show Designator 属性已禁用的对象。
注意
Show Designator 属性仅对引脚对象定义。
Object_PinsLocked
摘要
返回所有部件对象的子对象中,其 Pins Locked 属性符合查询条件的对象。
语法
Object_PinsLocked(Parent) : Boolean_String
示例用法
Object_PinsLocked(Parent) = 'True'
返回所有部件对象的子对象中,其 Pins Locked 属性已启用的对象。
Object_PinsLocked(Parent) = 'False'
返回所有部件对象的子对象中,其 Pins Locked 属性已禁用的对象。
注意
Pins Locked 属性仅对部件对象定义。
Object_SheetFileName
摘要
返回图纸符号对象(图纸符号、器件图纸符号、受管图纸实例符号)的所有子对象中,其 Sheet File Name 属性符合查询条件的对象。
语法
Object_SheetFileName(Parent) : String
示例用法
Object_SheetFileName(Parent) = 'Microcontroller_STM32F101.SchDoc'
返回图纸符号对象的子对象中,其 Sheet File Name 属性为 Microcontroller_STM32F101.SchDoc 的对象。
Object_SheetFileName(Parent) Like '*Res*'
返回图纸符号对象的子对象中,其 Sheet File Name 属性包含 Res 的对象。
注意
Sheet File Name 属性仅对图纸符号对象定义。
Object_SheetName
摘要
返回图纸符号对象(图纸符号、器件图纸符号、受管图纸实例符号)的所有子对象中,其 Sheet Name 属性(即图纸符号位号)符合查询条件的对象。
语法
Object_SheetName(Parent) : String
示例用法
Object_SheetName(Parent) = 'Accelerometer'
返回图纸符号对象的子对象中,其 Sheet Name 属性为 Accelerometer 的对象。
Object_SheetName(Parent) Like '*Power*'
返回图纸符号对象的子对象中,其 Sheet Name 属性包含 Power 的对象。
注意
Sheet Name 属性仅对图纸符号对象定义。
Object_ShowName
摘要
返回所有引脚对象的子对象中,其 Show Name 属性符合查询条件的对象。
语法
Object_ShowName(Parent) : Boolean_String
示例用法
Object_ShowName(Parent) = 'True'
返回所有引脚对象的子对象中,其 Show Name 属性已启用的对象。
Object_ShowName(Parent) = 'False'
返回所有引脚对象的子对象,其中其 Show Name 属性为禁用。
注释
Show Name 属性定义于参数对象和引脚对象,但只有引脚对象才可能拥有可由此表达式返回的子对象。
Object_TextColor
摘要
返回所有端口对象的子对象,其中其 Text Color 属性符合查询条件。
语法
Object_TextColor(Parent) : Numeric_String
Object_TextColor(Parent) : Number
与某个特定数字对应的颜色可由以下关系推导得出:
65536 * Blue + 256 * Green + Red
其中 Blue、Green 和 Red 分量的取值均在 0 到 255(含)之间。
当 Object_TextColor 关键字可与 Number 结合使用时,可以使用以下结构分别计算 Text Color 属性的 Blue、Green 和 Red 分量的值:
- Blue = Text Color Div 65536
- Green = Text Color Div 256 Mod 256
- Red = Text Color Mod 256
用法示例
Object_TextColor(Parent) = '0'
Object_TextColor(Parent) <> '' && Object_TextColor(Parent) = 0
返回所有端口对象的子对象,其中其 Text Color 属性为 0(对应 Blue = 0、Green = 0、Red = 0)。
Object_TextColor(Parent) = '32896'
Object_TextColor(Parent) > '' && Object_TextColor(Parent) = 32896
返回所有端口对象的子对象,其中其 Text Color 属性为 32896(对应 Blue = 0、Green = 128、Red = 128)。
Object_TextColor(Parent) <> '16777215'
返回所有对象 except 端口对象的子对象,其中其 Text Color 属性为 16777215(对应 Blue = 255、Green = 255、Red = 255)。
Object_ObjectKind(Parent) = 'Port' && Object_TextColor(Parent) <> 16777215
返回所有端口对象的子对象,其中其 Text Color 属性不为 16777215。
Object_TextColor(Parent) > '' && Object_TextColor(Parent) Div 65536 >= 96 && Object_TextColor(Parent) Div 256 Mod 256 Between 64 And 192 && Object_TextColor(Parent) Mod 256 <= 128
返回所有端口对象的子对象,其中其 Text Color 属性满足:Blue 分量的值大于或等于 96,Green 分量的值大于或等于 64 且小于或等于 192,并且 Red 分量的值小于或等于 128。
Object_ObjectKind(Parent) = 'Port' && Object_TextColor(Parent) Mod 256 Between 64 And 192
返回所有端口对象的子对象,其中其 Text Color 属性的 Red 分量的值大于或等于 64 且小于或等于 192。
注释
Text Color 属性定义于线束入口、注释、端口、页入口和文本框对象,但只有端口对象才可能拥有可由此表达式返回的子对象。
Object_UseDBTableName
摘要
返回所有部件对象的子对象,其中其 Use Database Table Name 属性符合查询条件。
语法
Object_UseDBTableName(Parent) : Boolean_String
用法示例
Object_UseDBTableName(Parent) = 'True'
返回所有部件对象的子对象,其中其 Use Database Table Name 属性为启用。
Object_UseDBTableName(Parent) = 'False'
返回所有部件对象的子对象,其中其 Use Database Table Name 属性为禁用。
注释
Use Database Table Name 属性仅定义于部件对象。
Object_UseLibraryName
摘要
返回所有部件对象的子对象,其中其 Use Library Name 属性符合查询条件。
语法
Object_UseLibraryName(Parent) : Boolean_String
用法示例
Object_UseLibraryName(Parent) = 'True'
返回所有部件对象的子对象,其中其 Use Library Name 属性为启用。
Object_UseLibraryName(Parent) = 'False'
返回所有部件对象的子对象,其中其 Use Library Name 属性为禁用。
注释
Use Library Name 属性仅定义于部件对象。