element_labeling#

annotation.element_labeling(p0: str) int#

Turns element labels on or off globally.

Element labels for individual parts can be toggled on or off; however, for any labels to be visible, the global setting must be on. A threshold can also be enabled to limit the range of visible labels.
Args:
p0:

‘toggle’

  • ON

  • OFF

Examples:
ensight.annotation.element_labeling("ON")
ensight.view_transf.function("global")
# WARNING: following line includes OBSOLETE call (ensight.part.select_partname_begin).
ensight.part.select_partname_begin("(CASE:Case 1)Subset of parts: 2")
ensight.part.modify_begin()
ensight.part.entity_label_elt("ON")
ensight.part.modify_end()
ensight.view_transf.function("global")
ensight.annot_entlbl.node_thresholds("high")
ensight.annot_entlbl.node_threshold_low(1)
ensight.annot_entlbl.node_threshold_high(10)
ensight.annot_entlbl.node_rgb(0.000000,0.000000,1.000000)
Returns:

zero on success, non-zero on error