From 7c10f53a43691d4c8eb8727895173c9ef4654866 Mon Sep 17 00:00:00 2001 From: ika Date: Wed, 1 Feb 2017 19:17:48 +0300 Subject: [PATCH] =?utf8?q?bug=20#88=20The=20=E2=80=9CTitleblock=E2=80=9D?= =?utf8?q?=20view=20does=20not=20show=20anything?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/STEPCAFControl/STEPCAFControl_Reader.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/STEPCAFControl/STEPCAFControl_Reader.cxx b/src/STEPCAFControl/STEPCAFControl_Reader.cxx index 9bd93fa9e9..99dfb8bcf4 100644 --- a/src/STEPCAFControl/STEPCAFControl_Reader.cxx +++ b/src/STEPCAFControl/STEPCAFControl_Reader.cxx @@ -2577,6 +2577,13 @@ Standard_Boolean STEPCAFControl_Reader::setDatumToXCAF(const Handle(StepDimTol_D // Create object for datum TDF_Label aDatL = aDGTTool->AddDatum(); myGDTMap.Bind(theDat, aDatL); + // bind datum label with all reference datum_feature entities + for (Standard_Integer i = 1; i <= aSAs.Length(); i++) { + Handle(StepRepr_ShapeAspect) aSA = aSAs.Value(i); + if (aSA.IsNull() || aSA->IsKind(STANDARD_TYPE(StepDimTol_DatumTarget))) + continue; + myGDTMap.Bind(aSA, aDatL); + } aDGTTool->Lock(aDatL); aDat = XCAFDoc_Datum::Set(aDatL); aDGTTool->SetDatum(aShapeLabels, aDatL); @@ -4311,6 +4318,9 @@ Standard_Boolean STEPCAFControl_Reader::ReadViews(const Handle(XSControl_WorkSes Handle(StepAP242_DraughtingModelItemAssociation)::DownCast(aDMIAIter.Value()); TDF_Label aGDTL; Standard_Boolean isFind = myGDTMap.Find(aDMIA->Definition().Value(), aGDTL); + if (!isFind) { + isFind = myGDTMap.Find(anIter.Value(), aGDTL); + } if (isFind) aGDTs.Append(aGDTL); } -- 2.39.5