GetPropertyAttribute [Schematic Editor]

 To find the value of an attribute of a specified property.

UI Access NA
Parameters
Name Type Description
<tab> String One of six choices, "PassedParameterTab", "ComponentTab", "Component", "BaseElementTab", "Quantities", "Signals"
<objectId> String Instance ID of object with the property
<propName> String The name of the property
<attribute> String Currently, only the "Direction" attribute is supported. Return values will be one of "In", "Out" or "InOut"
Return Value A string, the attribute's value.

 

Python Syntax GetPropertyAttribute(<tab>, <objectId>, <propName>, <attribute>)
Python Example

comparray = oEditor.GetAllComponents()

for i in comparray:

instval = oEditor.GetPropertyValue

("PassedParameterTab",i,"InstanceName")

proparray = oEditor.GetProperties ("Quantities",i)

for j in proparray:

direction = oEditor.GetPropertyAttribute

("Quantities",i, j, "Direction")

AddInfoMessage(str(j)+ " = (direction) " +

str(direction))