Use model.geom(<tag>).create(<ftag>,"Revolve") to revolve objects from a work plane.
Use model.geom(<tag>).feature(<ftag>).selection("input") to select the work plane objects to revolve. 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 revolve. Faces are revolved when the
workplane property is
none, otherwise work plane objects are revolved.
Each 2D object in input or planar face in
inputface is revolved about the revolution axis. The range of angles is given by the properties
angle1 and
angle2. If
axistype is
2d, the revolution axis is defined in a local coordinate system. The revolution axis goes through
pos with direction
axis. If
axistype is
3d, the revolution axis is defined in the 3D coordinate system. The revolution axis goes through
pos3 with direction
axis3.
When unite is
on, the input objects are united with the corresponding revolved objects, after which the input objects are removed. When revolving from work plane objects, this has the same effect as deleting the input objects. When
unite is
off, the revolved objects remain separate from the input objects and the input objects are kept.