extract#

part.extract() int#

Creates an extract of the currently selected part(s).

Extracts a new part from the selected part(s) using the part representation in effect at the time (full, border, or feature). If more than one part is selected, then they are joined into a single part which is assigned to Frame 0.
The part: extract command creates a new part using the geometry of the current representation (what you see is what you get). Extracted parts which are in Full Representation are actual copies of the original, but extracted parts which are in Border Representation are only the shell or boundary of the original.
Examples:
ensight.part.select_begin(1)
ensight.part.extract()
Returns:

zero on success, non-zero on error