Article | 60000294 |
Type | Bug |
Product | Engine |
Version | 6009 |
Date Added | 10/30/2007 |
Fixed | Yes [10/30/2007] |
Submitted by | Mike Stoodley |
Keywords |
void CVDView::OnDrawQdim() { // InitForCommand(IDS_LANG_CMD50); COlePoint p1; m_VD.Prompt(::LoadStringResource(IDS_LANG_MSG19)); CvdFigure fig = m_VD.GetUtility().GetEntity(&p1); if(!this->IsValidVDObject(fig.m_lpDispatch)) { return; } //Only proceed if we have a line! if(fig.GetType() != VD_LINE) { AfxMessageBox(_T("Please select a line for Quick Dimension")); return; } VARIANT var; VariantInit(&var); var.vt = VT_DISPATCH; var.pdispVal = fig.m_lpDispatch; fig.DetachDispatch(); VERIFY(m_VD.GetCommandAction().CmdDim(UTCMGraphicDimension::DIM_ALIGNED , var , COleVariant(_T("USER")) , 0)); }