create#

devsrf.create() int#

Specifies the creation of a developed, or unrolled surface. This unrolls the selected 2D (parent) part into a flat2D developed part.

In the example below, the 2 in the 2D parent part 2 is unrolled into the 2D developed part 3.
Examples:
#
# Align default settings according to parent part
#
ensight.part.select_begin(2)
ensight.devsrf.select_default()
ensight.part.modify_begin()
ensight.devsrf.origin(5.0000e-01,5.0000e-01,0.0000e+00)
ensight.devsrf.axis(0.0000e+00,0.0000e+00,1.0000e+00)
ensight.devsrf.seam_vector(1.0000e+00,0.0000e+00,0.0000e+00)
ensight.part.modify_end()
#
# Create developed part 3 from parent part 2
#
ensight.part.select_begin(2)
ensight.devsrf.begin()
ensight.devsrf.origin(5.0000e-01,5.0000e-01,0.0000e+00)
ensight.devsrf.axis(0.0000e+00,0.0000e+00,1.0000e+00)
ensight.devsrf.seam_vector(1.0000e+00,0.0000e+00,0.0000e+00)
ensight.devsrf.end()
ensight.devsrf.create()
Returns:

zero on success, non-zero on error