Use this Function to create a workplane through a selected edge,angled to the active workplane
HRESULT Orientedplane(ITopology *pEdge,double
angle,CString workplaneName,
CString sketchName,VARIANT_BOOL
bNoSketch,long color,
IWorkplane **retDispatch)
edge
Selected edge
angle
Orientation angle
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
The value of color which represents the color of the new sketch
Output Parameters
The Created Workplane
Description
This Function creates a workplane through a selected edge,angled to the active workplane.The angle is to be specified in degrees. 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.