MatePlanes 

Mates the faces or workplanes of two components in an assembly.

        HRESULT MatePlanes(IDesign *design, IGeometric *pFirst, IGeometric *pSecond, double offset,  CString name)

Input Parameters

 

design  The current design in the session
first The first geometry which can be a face or a workplane
second The second geometry which can be a face or a workplane
offset The offset distance for the mating condition
name The variable name for the offset distance

Output Parameters

            None

Description

        Use this method to mate the planes of the components in an assembly. You can choose either the faces of the components or two workplanes.