Use this Function to create a workplane on a planar face or in the plane of a circular or elliptical edge
HRESULT PlaneOfObject(ITopology *pFirstTopology, CString
workplaneName,
CString sketchName,
VARIANT_BOOL bNoSketch, long color,
IWorkplane **retDispatch)
firstTopology
Planar face or a circular or elliptical edge used to create the workplane
workplaneName
Name of the workplane
sketchName
Name of the sketch to be created on the workplane
bNoSketch
Boolean to specify if the workplane will contain a sketch or not.
color
Value of color which represents the color of the new sketch
Output Parameters
The Created Workplane
Description
This Function creates a workplane on a planar face or in the plane of a circular or elliptical edge If a workplane with the given name alredy exists, new workplane is not created. It also creates a new sketch on the created workplane and makes the created sketch active depending upon the value of the bNoSketch boolean.The range of values color of the sketch can take is 0 through 11. If the value is out of this range a default color of green is assumed.