Use model.geom(<tag>).create(<ftag>,"Extrude") to extrude objects from a work plane or planar faces in the 3D geometry.
Use model.geom(<tag>).feature(<ftag>).selection("input") to select the work plane objects to extrude. The default selection is all available objects from the last preceding work plane.
Use model.geom(<tag>).feature(<ftag>).selection("inputface") to select the faces to extrude. Faces are extruded when the
workplane property is
none; otherwise work plane objects are extruded.
Each planar input is extruded in nd layers defined by a local coordinate system. By default,
nd=1. The property
distance is the extrusion distance (of each layer) in the
z-axis direction of the local system. The properties
displ,
scale, and
twist define the translation displacements, scale factors and rotation of the top (of each layer) with respect to the bottom of the extruded object. The last array dimension in the properties
displ,
scale, and
twist can be omitted if the same value is desired for all layers.
When unite is set to
on, the input objects are united with the corresponding extruded objects, after which the input objects are removed. When extruding from work plane object, this has the same effect as deleting the input objects. When
unite is set to
off, the extruded objects remain separate from the input objects and the input objects are kept.