displace_by#

part.displace_by(p0: Any) int#

Specifies the variable to be used to displace the nodes and elements of the currently selected part(s).

The displacement factor can be changed before or after the part: displace_by command is issued.
Args:
p0:

‘variable_name’ name of an activated variable

Examples:
ensight.part.select_begin(1)
ensight.part.modify_begin()
ensight.part.displace_factor(0.9)
ensight.part.displace_by("pressure")
ensight.part.modify_end()
Returns:

zero on success, non-zero on error