MidPlane

Use this Function to create a workplane mid-way between two planar faces or two workplanes

Input Parameters

        firstGeometry                  First face or workplane used to create the workplane
        secondGeometry            Second face or workplane 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                              The value of color which represents the color of the new sketch

Output Parameters

    retValue        The Created Workplane

Description

This Function creates a workplane mid-way between two planar faces or two workplanes  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.