struct.prop.index

Syntax

i := struct.prop.index(p,s)

Returns the index of the property name in a structural element. This index can be used to get/set a particular property more quickly than by using the name, see the struct.prop intrinsic. The index is valid for a particular element type (beam, cable, shell, liner, etc) and plastic constitutive model (if any) combination. A return value of -1 means that the property name was not found in that element.

Returns:

i - index of the property in that element, or -1 if that property was not found.

Arguments:

p - pointer to a structural element

s - property name