Use this function to create a workplane offset from the selected workplane or planar face.
HRESULT Offsetplane(ITopology *pGeometry, double offsetDistance,
CString workplaneName, CString sketchName, VARIANT_BOOL bNoSketch,
long color,
IWorkplane **retDispatch)
geometry
Face or workplane used to create the workplane
offsetDistance
Offset Distance
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 allows the creation of a workplane at a given offset from the selected or passed workplane or a face. It takes the workplane name and the sketch name as input parameters. Checking is done to avoid duplication of a workplane name. The color is taken as an integer on a scale of 0 to 11 varying from Red to Blue through Green. The default color is taken as green. The boolean input parameter, if FALSE, indicates that the workplane should not be empty (i.e. should contain a sketch) and if TRUE, should be empty.