25
Inspecting Properties
This topic describes how to use Tcl commands to get properties values for an object and items in a set.
Get a Property Value for an Object
Two commands, inspect_getprop and ip (shorthand for inspect_prop) can be used to get the property value for an object.
inspect_getprop -prop_names_propName-objectd_ctuObj
ips_propNamed_ctubobj
For example, both of the following commands return the name of the net given by the $net variable:
Get a Property Value for Items in a Set
To get a property value for an item in a set, use one of the following:
-
inspect_getprop -prop_names_propName-itemi_itemNbr-setd_setObj -
ips_propName[lindex [mld_setObj] [i_itemNbr-1]]
The following examples return the type property value for the first object in the set given by the iSet variable.
By default, inspect_getprop operates on the selected set, if not empty, and -item must be given if there is more than one object in the set.
Related Topics
Tcl Examples for Inspecting Properties
Return to top