Calling ToolKit method in Object ToolKit C++
Hi Guys,
I have a requirement where I need to call toolkit method in OTK C++.
Need to check if following attached code is right?
Application hangs up while executing the code.
CODE:
pfcDimension2Ds_ptr dims = drawing->ListShownDimensions(vw->GetModel(), pfcModelItemType::pfcITEM_DIMENSION);
for (int j = 0; j < dims->getarraysize(); j++)
{
pfcDimension2D_ptr soldimension2d = pfcDimension2D::cast( dims->get(j));
pfcDimension_ptr solDimension = pfcDimension::cast( dims->get(j));
if (soldimension2d->GetIsDisplayed())
{
if (soldimension2d->GetView() != NULL)
{
try
{
ProDimension feat = (ProDimension) wfcGetHandleFromObject( pfcObject::cast(solDimension) );
double *valD;
ProDimensionDisplayedValueGet(feat,valD);
}xcatchbegin
xcatchcip (Ex)
wLogger->log("ERROR IN Inspection Report Method....................");
cout<<Ex;
xcatchend
}// View associated to dimension
}// Dimension is displayed
}// Iterate dimensions

