mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0026859: Export of GDT from XCAF to STEP
Export/Import: Add export of dimensions, geometric tolerances and datums, according to AP242. Add missing STEP entities. Corrections. XCAF: Add new attributes to Datum object: DatumTargetNumber. Supplement enum XCAFDimTolObjects_GeomToleranceZoneModif. Corrections. Test cases: gdt export A1 gdt export A2 gdt export A3 gdt export A4 gdt export A5
This commit is contained in:
@@ -158,7 +158,7 @@ void RWStepDimTol_RWDatumReferenceElement::WriteStep (StepData_StepWriter& SW,
|
||||
else if (aBaseType == 2) {
|
||||
Handle(StepDimTol_HArray1OfDatumReferenceElement) anArray = (ent->Base()).CommonDatumList();
|
||||
Standard_Integer i, nb = (anArray.IsNull() ? 0 : anArray->Length());
|
||||
SW.OpenSub();
|
||||
SW.OpenTypedSub("COMMON_DATUM_LIST");
|
||||
for (i = 1; i <= nb; i++)
|
||||
SW.Send (anArray->Value(i));
|
||||
SW.CloseSub();
|
||||
@@ -176,8 +176,10 @@ void RWStepDimTol_RWDatumReferenceElement::WriteStep (StepData_StepWriter& SW,
|
||||
}
|
||||
}
|
||||
SW.CloseSub();
|
||||
}
|
||||
|
||||
}
|
||||
else {
|
||||
SW.SendUndef();
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
Reference in New Issue
Block a user