- par = RealParameterObject::CreateParameter(L"porosity ", L"[-]", 0, NaN, NaN, dimensionality, &valStatus, CAPE_INPUT);
+ par = RealParameterObject::CreateParameter(L"porosity", L"[-]", 0, NaN, NaN, dimensionality, &valStatus, CAPE_INPUT);
There is a PRO/II CAPE-OPEN limitation for missing real values. Pro/II uses RMISS (-1.5000000000000000e+35) for missing values of real parameters. But there is no corresponding CAPE-OPEN value for that missing value.
Thus, if a value is specified and saved, the value is saved in Pro/II. If this value is changed afterwards, there is no problem. But if the value is deleted, it is missing (RMISS in PRO/II) and RMISS cannot be handed over to the CAPE-OPEN unit. Thus the problem.
I had contact with the Pro-II support about that problem and they said the following:
There is a PRO/II CAPE-OPEN limitation for missing real values. Pro/II uses RMISS (-1.5000000000000000e+35) for missing values of real parameters. But there is no corresponding CAPE-OPEN value for that missing value.
Thus, if a value is specified and saved, the value is saved in Pro/II. If this value is changed afterwards, there is no problem. But if the value is deleted, it is missing (RMISS in PRO/II) and RMISS cannot be handed over to the CAPE-OPEN unit. Thus the problem.
The missing value for a real number in CAPE-OPEN is IEEE NaN. This is specified in the M&T guidelines.
This complies with e.g. _isnan(), std::isnan() and std::numeric<double>::quiet_nan()
So NaN is the equivalent of RMISS.
Users browsing this forum: No registered users and 1 guest