mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0033099: Data Exchange, Step Import - Wrong PMI values in GDT
measure_with_unit entity is changed to be translated as Handle(Standard_Transient) and to be processed later, depending on the underlying type being used.
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <RWStepRepr_RWMakeFromUsageOption.hxx>
|
||||
#include <StepBasic_MeasureWithUnit.hxx>
|
||||
#include <StepData_StepReaderData.hxx>
|
||||
#include <StepData_StepWriter.hxx>
|
||||
#include <StepRepr_MakeFromUsageOption.hxx>
|
||||
@@ -74,8 +73,8 @@ void RWStepRepr_RWMakeFromUsageOption::ReadStep (const Handle(StepData_StepReade
|
||||
Handle(TCollection_HAsciiString) aRankingRationale;
|
||||
data->ReadString (num, 7, "ranking_rationale", ach, aRankingRationale);
|
||||
|
||||
Handle(StepBasic_MeasureWithUnit) aQuantity;
|
||||
data->ReadEntity (num, 8, "quantity", ach, STANDARD_TYPE(StepBasic_MeasureWithUnit), aQuantity);
|
||||
Handle(Standard_Transient) aQuantity;
|
||||
data->ReadEntity (num, 8, "quantity", ach, STANDARD_TYPE(Standard_Transient), aQuantity);
|
||||
|
||||
// Initialize entity
|
||||
ent->Init(aProductDefinitionRelationship_Id,
|
||||
|
Reference in New Issue
Block a user