Use this function to create a new sketch in the active workplane.
HRESULT NewSketch(IWorkplane *pWorkplane, int color,
CString sketchName,
ISketch **pSketch)
Workplane
Active Workplane where the new sketch will be created
color
Value of color which governs the color of the new sketch
sketchName
Name of the new sketch
Output Parameters
NewSketch - The newly created sketch
Description
This function creates a new sketch in the workplane with the given sketch name. If a sketch with the name given alredy exists, new sketch is not created. The range of values color can take is 0 through 11. It also makes the created sketch active. If the value is out of this range a default color of green is assumed.