View Issue Details

IDProjectCategoryView StatusLast Update
0033875CommunityOCCT:Data Exchangepublic2025-02-19 19:12
ReporterThomas.Dunker_157106 Assigned Todpasukhi  
PrioritynormalSeverityminor 
Status newResolutionopen 
PlatformWindowsOSVC++ 2017 
Product Version7.8.0 
Summary0033875: For some STEP files we fail for geometric tolerances to read the "geometric_tolerance.magnitude"
DescriptionFor some STEP files we fail for geometric tolerances to read the "geometric_tolerance.magnitude" as a StepBasic_MeasureWithUnit. The parameter 3 may be of type StepRepr_ReprItemAndLengthMeasureWithUnitAndQRI or StepRepr_ReprItemAndPlaneAngleMeasureWithUnitAndQRI.

There is a method
```
Handle<StepBasic_MeasureWithUnit> GetMeasureWithUnit () const
```
inherited from StepRepr_ReprItemAndMeasureWithUnit (parent of the parent), which would return the needed handle, but none of the parent Types satisfies isKind("StepBasic_MeasureWithUnit")

There are multiple tolerances concerned in src\RWStepDimTol\:
  - RWStepDimTol_RWAngularityTolerance.cxx
  - RWStepDimTol_RWCircularRunoutTolerance.cxx
  - RWStepDimTol_RWCoaxialityTolerance.cxx
  - RWStepDimTol_RWConcentricityTolerance.cxx
  - RWStepDimTol_RWCylindricityTolerance.cxx
  - RWStepDimTol_RWFlatnessTolerance.cxx
  - RWStepDimTol_RWGeometricToleranceWithDatumReference.cxx
  - RWStepDimTol_RWGeometricToleranceWithDefinedAreaUnit.cxx
  - RWStepDimTol_RWGeometricToleranceWithDefinedUnit.cxx
  - RWStepDimTol_RWGeometricToleranceWithMaximumTolerance.cxx
  - RWStepDimTol_RWGeometricToleranceWithModifiers.cxx
  - RWStepDimTol_RWLineProfileTolerance.cxx
  - RWStepDimTol_RWModifiedGeometricTolerance.cxx
  - RWStepDimTol_RWParallelismTolerance.cxx
  - RWStepDimTol_RWPerpendicularityTolerance.cxx
  - RWStepDimTol_RWPositionTolerance.cxx
  - RWStepDimTol_RWRoundnessTolerance.cxx
  - RWStepDimTol_RWStraightnessTolerance.cxx
  - RWStepDimTol_RWSurfaceProfileTolerance.cxx
  - RWStepDimTol_RWSymmetryTolerance.cxx
  - RWStepDimTol_RWTotalRunoutTolerance.cxx
  - RWStepDimTol_RWUnequallyDisposedGeometricTolerance.cxx

Among the NIST PMI step file examples there are some, where the 3rd parameter of the geometric tolerances is of the form

#id=(
LENGTH_MEASURE_WITH_UNIT()
MEASURE_REPRESENTATION_ITEM()
MEASURE_WITH_UNIT(LENGTH_MEASURE(value),#id)
REPRESENTATION_ITEM('')
);

where the reading fails:
- nist_ctc_01_asme1_ap242-e1.stp
- nist_ctc_02_asme1_ap242-e2.stp
- nist_ctc_03_asme1_ap242-e2.stp
- nist_ftc_08_asme1_ap242-e2.stp
- nist_stc_10_asme1_ap242-e2.stp

For others the 3rd parameter is of the expected form

#id=LENGTH_MEASURE_WITH_UNIT(LENGTH_MEASURE(value),#id);

and the reading of the magnitude succeds:
- nist_ctc_05_asme1_ap242-e1.stp
- nist_ftc_06_asme1_ap242-e2.stp
- nist_ftc_07_asme1_ap242-e2.stp
- nist_ftc_09_asme1_ap242-e1.stp
- nist_ftc_10_asme1_ap242-e2.stp
- nist_stc_06_asme1_ap242-e3.stp
- nist_stc_08_asme1_ap242-e3.stp
- nist_stc_09_asme1_ap242-e3.stp
TagsNo tags attached.
Test case number

Activities

dpasukhi

2025-02-19 19:09

administrator   ~0116968

Last edited: 2025-02-19 19:10

Dear @Thomas.Dunker_157106 Could you please share the files?
I would recommend to create an issue in https://github.com/Open-Cascade-SAS/OCCT/issues
Mantis at the moment on migration process.

If you would prefer no create a new issue on GH - then we will create manually. And will inform you here (on Mantis) about progress
Originally, the issue will planned to 7.9.1

Issue History

Date Modified Username Field Change
2025-02-19 19:05 Thomas.Dunker_157106 New Issue
2025-02-19 19:05 Thomas.Dunker_157106 Assigned To => ika
2025-02-19 19:09 dpasukhi Note Added: 0116968
2025-02-19 19:09 dpasukhi Note Edited: 0116968
2025-02-19 19:10 dpasukhi Note Edited: 0116968
2025-02-19 19:12 dpasukhi Assigned To ika => dpasukhi