long mateTypeFromEnum;
long alignFromEnum;
long errorStatus;
mateTypeFromEnum=swMateCOINCIDENT;
alignFromEnum=swMateAlignALIGNED;
status=pAssemblyDoc->AddMate2(mateTypeFromEnum,alignFromEnum,false,0,0,0,0,0,0,0,0,&errorStatus,&pMate);
if(status!=S_OK)
AfxMessageBox("配合有问题");