#include <StepBasic_MeasureWithUnit.hxx>
#include <StepData_StepReaderData.hxx>
#include <StepData_StepWriter.hxx>
+#include <StepDimTol_GeometricToleranceTarget.hxx>
#include <StepDimTol_StraightnessTolerance.hxx>
-#include <StepRepr_ShapeAspect.hxx>
//=======================================================================
//function : RWStepDimTol_RWStraightnessTolerance
Handle(StepBasic_MeasureWithUnit) aGeometricTolerance_Magnitude;
data->ReadEntity (num, 3, "geometric_tolerance.magnitude", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aGeometricTolerance_Magnitude);
- Handle(StepRepr_ShapeAspect) aGeometricTolerance_TolerancedShapeAspect;
- data->ReadEntity (num, 4, "geometric_tolerance.toleranced_shape_aspect", ach, STANDARD_TYPE(StepRepr_ShapeAspect), aGeometricTolerance_TolerancedShapeAspect);
+ StepDimTol_GeometricToleranceTarget aGeometricTolerance_TolerancedShapeAspect;
+ data->ReadEntity (num, 4, "geometric_tolerance.toleranced_shape_aspect", ach, aGeometricTolerance_TolerancedShapeAspect);
// Initialize entity
ent->Init(aGeometricTolerance_Name,
SW.Send (ent->StepDimTol_GeometricTolerance::Magnitude());
- SW.Send (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
+ SW.Send (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect().Value());
}
//=======================================================================
iter.AddItem (ent->StepDimTol_GeometricTolerance::Magnitude());
- iter.AddItem (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect());
+ iter.AddItem (ent->StepDimTol_GeometricTolerance::TolerancedShapeAspect().Value());
}