Prod.: Engine, ver.: 6009, ID: 60000294, Bug : cmdDim with vdFigure (quick dim) dont work in Wrapper

Bug : cmdDim with vdFigure (quick dim) dont work in Wrapper

Article60000294
TypeBug
ProductEngine
Version6009
Date Added10/30/2007
FixedYes [10/30/2007]
Submitted byMike Stoodley
Keywords

Subject

cmdDim with vdFigure (quick dim) dont work in Wrapper

Summary

cmdDim with vdFigure (quick dim) dont work in Wrapper as in Version 5.x. See the code :
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)); 
 

 } 

Solution

It is fixed in 6010