Work Feature functions in iLogic

Use Work Feature functions to modify existing work features.

To access the Work Feature functions, expand the Work Features node under the System tab in the Snippets area.

WorkPlane.FlipNormal

Conditionally flips the normal vector of a work plane. This action flips the work plane over. If a sketch is built on the plane, it is flipped over as well. This function can be used to change a feature from left-handed to right-handed. It is most useful for a mid-plane extrusion. The function does not flip the normal every time you use it; instead, it ensures that the normal is in the direction you want. The function flips the normal if it is not "in agreement" with the axis you specify.

Syntax

WorkPlane.FlipNormal(“workPlaneName”, “axisWanted”)

“workPlaneName”

The name of the work plane to be flipped.

“axisWanted”

The name of axis of a part, optionally prefixed with a negative sign (-) to indicate the direction. This convention provides the function the approximate direction for the plane normal. If the plane is not exactly aligned to an axis in the model, use the axis that is closest to the desired plane normal. Alignment within 60 degrees is acceptable.

Examples

WorkPlane.FlipNormal("Work Plane1", "X")
WorkPlane.FlipNormal("Work Plane1", "-X")
WorkPlane.FlipNormal("Work Plane1", "Y")
WorkPlane.FlipNormal("Work Plane1", "-Y")
WorkPlane.FlipNormal("Work Plane1", "Z")
WorkPlane.FlipNormal("Work Plane1", "-Z")

Sketch.Redefine

Redefines a sketch using alternative inputs. This function is most effective for self-contained sketches that do not contain any projected geometry. Constrain all sketch geometry to the origin or to one of the sketch axes, using coincident or fix constraints or dimensions.

This function requires names as input; therefore, define the sketch using named items:

Syntax

Sketch.Redefine(sketchName, planeName, originName, axisName, AxisIsX := True, NaturalAxisDirection := True )

sketchName

Name of the sketch.

planeName

Name of an entity to use as the sketch plane.

originName

Name of an entity to use as the origin point of the sketch.

axisName

Name of an entity to use as a sketch axis (either X or Y axis).

AxisIsX

Default value of True indicates that the sketch axis specified by axisName is the X (horizontal) axis. False indicates that the axis is the Y (vertical) axis.

NaturalAxisDirection

Default value of True indicates that the sketch axis is in the same direction as the axisName entity. False indicates that the sketch axis is in the opposite direction.