Operations¶

Public Methods¶

pushPull(feature, depth)

Push or Pulls a face or edge to specific depth.

param feature: Feature to push or pull. FeatureArea Push or Pull distance. float
extract(feature)

Extracts geometry features and transfer them into a new part.

param feature: Feature to be extracted. Feature
mirror(entity, planeOrigin=None, planeNormal=None, keep=True)

Mirrors part across a symmetry plane.

User needs to provide the planeOrigin and planeNormal if passing in a Part for mirror.

param entity: type entity: Part from which a mirror part needs to be created or a Planar feature which needs to be mirrored across the plane Part, FeaturePlanar origin of the symmetry plane. Triple normal of the symmetry plane. Triple True to keep the original part, False remove it. Bool New mirrored part created. Part
patch(feature)

Creates patches to fill in specified missing surfaces.

param feature: Feature to be patched. Feature
deleteFaces(feature)

Deletes the specified face from the part.

param feature: Feature to be removed. Feature
move(part, position)

Translates and/or rotates a part.

param part: The part to move. Part The position to move the part at. Matrix44
rotate(part, axis, angle, degrees=True)

Rotates around the specified axis.

This is a body rotation.

param part: The part to rotate. Part The rotation axis. Valid choices are “x”, “y”, “z” or any Vector. Union[Vector, str] The rotation angle. float Determines if angles is in degrees or not. bool
scale(part, value=1.1)

Resizes the part to the specified scale value.

This is useful when working with an imported model that is associated with a different default unit system.

param part: Part that needs to be scaled. Part Specify scale factor. float
booleanCombine(part, others)

Combines the specified part with others.

param part: Part to be combined with the other part. Part Part or parts for boolean combine operation. Part The combined part. Part
booleanSubtract(part, others, deleteOthers=True)

Carves out one set of solid objects from another set of solid objects.

param part: type part: Part to be subtracted with the other part. Part Part or parts for boolean subtract operation. list[Part] Specify to delete others. bool The remaining part. Part
booleanIntersect(part, others, deleteOthers=True, deleteTarget=True)

Retains only the intersecting portions of two sets of solid objects.

param part: type part: Part to be intersected with the other part. Part Part or parts for boolean intersect operation. list[Part] Specify to delete others. bool Specify to delete target. bool The intersected part. Part
slice(entity, cutOrigin=None, cutNormal=None)

Slices a set of solid objects with a cutting plane.

User needs to provide the cutOrigin and cutNormal if passing in a Part for slice, or else if its a feature then cutOrigin needs to be specified

param entity: type entity: Part from which a sliced part needs to be created or a Planar feature which needs to be sliced across the cutting plane. Part, Feature origin of the cutting plane. Triple normal of the cutting plane. Triple True to keep the original part, False remove it. Bool New sliced part created. Part
simplifyImprints(entity)

Finds and remove imprints from a part.

An imprint is an edge or a point that appears on a surface that can be removed without changing the underlying integrity of the surface, such as scratches or trimmed points.

param entity: Part from which you want to remove the Imprints from or FeatureLinear imprint to be removed. Part, FeatureLinear
simplifyRounds(entity)

Finds and removes both round (convex) and fillet (concave) surfaces from a part.

param entity: Part from which you want to remove the Fillets, Chamfers from or a Feature to be removed. Part, Feature
simplifyHoles(entity)

Finds and removes holes and pockets, and find raised areas such as lettering.

param entity: Part from which you want to remove the Holes from or FeatureCircular which needs to be removed. Part, Feature
simplifyPlugs(entity)

Finds holes and pockets, and plug them by filling the area with a new part

param entity: Part from which you want to plug the holes or a Circular feature that needs to be plugged. Part, Feature
partition(feature, thickness='1 mm', substractFromTarget=False)

Divides a solid part into design and non-design regions by selecting a hole, pocket, or face to offset.

param feature: type feature: feature to be partitioned. Feature partition thickness consider in mm. float Remove the original feature from the part and then create a partition. Defaults to False, bool
midSurface(part, surfaceOptions='Mid')

Extracts a midsurface or side faces from thin solids, and determine where surfaces are represented.

Replacing parts with midsurfaces yields better results while increasing speed when running an analysis or optimization.

param part: type part: part which needs midsurface extraction. Part side options allows you to extract the Mid, Left or Right surface of the part. str
fillet(feature, radius='3 mm')

Creates fillet on a Linear/Planar feature.

param feature: feature that needs to be fillet. Feature Radius of the fillet in string format. str
chamferByAngle(feature, angle='45 deg', dist='3 mm')

Creates chamfer on a Linear/Planar feature.

param feature: Feature that needs to be chamfer. Feature Chamfer angle from the edge in string format. str Chamfer distance from the edge in string format. str
chamferByDistance(feature, dist1='3 mm', dist2='3 mm')

Creates chamfer on a linear or planar feature.

param feature: Feature that needs to be chamfer. Feature Chamfer distance from the edge. str Chamfer distance from the edge. str
shell(feature, thickness=1)

Removes material and create thin walls to generate a shelled part.

param feature: type feature: Feature to create a shelled part from. FeatureArea Shell thickness consider in mm. float
projection(feature, parts, extendEdges=True)

Creates projection of a feature from one part to another part.

param feature: type feature: Feature that needs to be projected on Part. Feature Parts on which feature projection to be. list[Part] If True, extends the edge. bool