Share

WorkPlanes Object


Description

The WorkPlanes collection object provides access to all of the objects in the parent document and provides methods to create new work planes.

Methods

Name Description
AddByLineAndTangent Method that creates a new work plane through the input line and tangent to the input surface. This method is not currently supported when creating a work plane within an assembly.
AddByLinePlaneAndAngle Method that creates a new work plane through the input line at the specified angle from the input plane. This method is not currently supported when creating a work plane within an assembly.
AddByNormalToCurve Method that creates a new work plane that passes through the point and is normal to the input curve. The point must lie on the curve, as described below. This method is not currently supported when creating a work plane within an assembly.
AddByPlaneAndOffset Method that creates a new work plane that is parallel to the input plane at a specified distance in the specified direction. This method is not currently supported when creating a work plane within an assembly.
AddByPlaneAndPoint Method that creates a new work plane that is parallel to the input plane and passes through the input point. This method is not currently supported when creating a work plane within an assembly.
AddByPlaneAndTangent Method that creates a new work plane that is parallel to the input plane and tangent to the input surface. Valid geometry for the face includes cylinders, cones, and spheres. This method is not currently supported when creating a work plane within an assembly.
AddByPointAndTangent Method that creates a new work plane through the input point and tangent to the input surface. The input point must lie on the input surface. This method is not currently supported when creating a work plane within an assembly.
AddByThreePoints Method that creates a new work plane based on the three input points. The three input points must be unique non-coincident points. Point1 to Point2 defines the positive X axis and Point3 defines the positive Y direction. This method is not currently supported when creating a work plane within an assembly.
AddByTorusMidPlane Method that creates a new work plane at the mid-plane of the torus specified by the input face. This method is not currently supported when creating a work plane within an assembly.
AddByTwoLines Method that creates a new work plane based on the two input lines. Line1 defines the X axis. If the two lines are not in the same plane, the plane is calculated by crossing the vectors defined by Line1 and Line2. This method is not currently supported when creating a work plane within an assembly.
AddByTwoPlanes Creates a new work plane that bisects the two input planes. This method is not currently supported when creating a work plane within an assembly.
AddFixed Method that creates a new work plane at the position and orientation defined by the point and X and Y axis vectors. When used to create a work plane within an assembly the resulting work plane will return an AssemblyWorkPlaneDef definition.

Properties

Name Description
Application Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned.
Count Property that returns the number of items in this collection.
Item Returns the specified WorkPlane object from the collection. This is the default property of the WorkPlanes collection object.
Parent Property returning the parent object.
Type Returns an ObjectTypeEnum indicating this object's type.

Accessed From

AssemblyComponentDefinition.WorkPlanes, FlatPattern.WorkPlanes, PartComponentDefinition.WorkPlanes, SheetMetalComponentDefinition.WorkPlanes, WeldmentComponentDefinition.WorkPlanes

Samples

Name Description
SurfaceBody Copy This sample demonstrates copying a surface body from one part to another. This is equivalent to the Promote command, but the API is much more flexible. In order for the sample to be self-contained, it creates two parts on the fly that will be used to demonstrate copying a body from one part to another. When copying a body into a part, you provide the surface body and a matrix to define its position in the new part. This sample creates a matrix based on the position of these parts within an assembly.
Create sheet metal lofted flange feature The following sample demonstrates the creation of a sheet metal lofted flange feature.
Projection - project across parts This sample demonstrates projecting a sketch entity across parts in an assembly. To use the sample, have an assembly open that contains at least two occurrences, (parts only), and run the program.
Spline - create NURBS This sample demonstrates the creation of a sketch spline using a geometry definition (a NURB). The API also supports creation of 3D sketch splines in a similar way.
Sweep Feature Add This sample demonstrates the creation of a sweep feature. The profile is a circle, but the path is made up of a 3D sketch and a 2D sketch.

Version

Introduced in version 4

Was this information helpful?