CORBA::String_var aUnits = aInsOp->ReadValue(fileN, fileT, "LEN_UNITS");
QString aUnitsStr (aUnits.in());
bool needConvert = true;
- if (aUnitsStr.isEmpty() || aUnitsStr == "M")
+ if (aUnitsStr.isEmpty() || aUnitsStr == "M" || aUnitsStr.toLower() == "metre")
needConvert = false;
if (needConvert) {
TColStd_SequenceOfAsciiString anUnitSolidAngleNames;
aReader.FileUnits(anUnitLengthNames, anUnitAngleNames, anUnitSolidAngleNames);
if (anUnitLengthNames.Length() > 0) {
+ aValue = new TCollection_HAsciiString( anUnitLengthNames.First() );
+ /*
TCollection_AsciiString aLenUnits = anUnitLengthNames.First();
if (aLenUnits == "millimetre")
aValue = new TCollection_HAsciiString ("MM");
// std::cout << ", " << anUnitLengthNames.Value(ii);
//std::cout << std::endl;
// tmp end
+ */
}
}
else {
}
// TODO (for other units than mm, cm, m or inch)
//else if (aLenUnits == "")
- // Interface_Static::SetCVal("xstep.cascade.unit", "");
+ // Interface_Static::SetCVal("xstep.cascade.unit", "???");
}
}
else {