|
楼主 |
发表于 2009-2-17 20:14:57
|
显示全部楼层
回复: PR 259360 Using Auto to dimension a group of features, if they're sele
void AddAxis(CPCDcommand *pCmd, CPCDFeatCtrlFrm::AXES_ARRAY & AxesToReport, CString & axis, int dim_type, double nom, double ptol, double mtol, BOOL bHasNominal = TRUE, BOOL bHasPlustol = TRUE, BOOL bHasMinustol = TRUE, BOOL bReport = TRUE, int iUpdateFeatureNominals = 0);
// PR259360 - yanhua - Using Auto to dimension a group of features, if they're selected using the SHIFT key all features are dimensioned as the first in the list
voidCDimLocDlg::AddAxis(CPCDcommand *pCmd, CPCDFeatCtrlFrm::AXES_ARRAY & AxesToReport, CString & axis, intdim_type, doublenom, doubleptol, doublemtol, BOOLbHasNominal/*=TRUE*/, BOOLbHasPlustol/*=TRUE*/, BOOLbHasMinustol/*=TRUE*/, BOOLbReport/*=TRUE*/, intiUpdateFeatureNominals/*=0*/)
{
if (m_auto && pCmd && m_pPartProgram)
{
intnFetCnt = 0;
CPCDcommand **pnts = NULL;
nFetCnt = get_dialog_features(m_pPartProgram, this, &pnts);
if (nFetCnt > 1) // multiple features are selected
IsDefaultAxis(pCmd, dim_type, bReport);
}
AddAxis(AxesToReport, axis, dim_type, nom, ptol, mtol, bHasNominal,bHasPlustol,bHasMinustol,bReport,iUpdateFeatureNominals);
}
|
|