|
楼主 |
发表于 2009-1-5 15:36:09
|
显示全部楼层
回复: PR 240988 - Probably some problems with Multiple FCF
1. t:\V44B\DIMENS\FeatCtrlFrm.CPP
boolCPCDFeatCtrlFrm::SetDimensionValidityForType(CPCDcommand *pFeature, BOOL *bValid/*=NULL*/, intlineno/*=2*/) // PR240988
bResult = SetDimensionValidityForType(pSetFeatures[jj], bValid, lineno); // PR240988
2. t:\V44B\DIMENS\FeatCtrlFrmUtil.CPP
BOOL VerifyDim(CPCDpart_program *m_pPartProgram,
CPCDFeatCtrlFrm *pFCF,
CArray <CString, CString> &in_errorStrArray,
CArray <int, int> &in_errorIDSArray,
BOOL in_UseMessageBox, CFeatCtrlFrmDlg *pFCFDlg/*=NULL*/) // #236761, whb 12/17/2005
else
{
isValid = VerifyDRF(m_pPartProgram, pFCF, in_errorStrArray, in_errorIDSArray, in_UseMessageBox, pFCFDlg);
}
// PR240988 - Make sure we don't have zero tolerance unless MMC/LMC.
CString tolstr = pFCF->GetLine2TolStr();
double tol = _ttof(tolstr);
if( tol == 0.0 )
{
if( (pFCF->GetLine2MMCRes() != ID_GDT_MMC) && (pFCF->GetLine2MMCRes() != ID_GDT_LMC) )
{
CString title;
title.LoadString(IDS_ERR_DRF);
CString message;
message.LoadString(IDS_ERR_UPPERTIER_ZERO_TOL);
in_errorStrArray.Add(message);
in_errorIDSArray.Add(IDS_ERR_UPPERTIER_ZERO_TOL);
if ( !global_automated.IsAutomated() && in_UseMessageBox)
PCDMessageBox( NULL, message, title, MB_OK, pFCFDlg ); // #236761, whb 12/17/2005
isValid = FALSE;
}
} |
|