fill_pattern#

part.fill_pattern(p0: int) int#

Specifies a fill pattern of variable transparency to be used on the surfaces of the currently selected part(s).

This command provides a means of simulating surface transparency which requires less computation than true transparency. Part opaqueness (controlled by the part: opaqueness command) must be 1.0 in order for part: fill_pattern to take effect.
Args:
p0:

‘pattern_num’ must be within the range of 0 to 3. transparency value of 0 specifies an opaque surface, while a value of 3 specifies a sparse (transparent) fill pattern

Examples:
ensight.view.hidden_surface("ON")
ensight.part.select_begin(1)
ensight.part.modify_begin()
ensight.part.hidden_surface("ON")
ensight.part.fill_pattern(2)
ensight.part.modify_end()
Returns:

zero on success, non-zero on error