From 8f819a483643376cbae4f44fed80cd0aa5307a6e Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 17 Mar 2005 08:33:18 +0000 Subject: [PATCH] Dump Python. In AddObject(), append python command --- src/GEOMImpl/GEOMImpl_IGroupOperations.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/GEOMImpl/GEOMImpl_IGroupOperations.cxx b/src/GEOMImpl/GEOMImpl_IGroupOperations.cxx index 2b6d52d59..e271df9c5 100644 --- a/src/GEOMImpl/GEOMImpl_IGroupOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IGroupOperations.cxx @@ -125,6 +125,7 @@ void GEOMImpl_IGroupOperations::AddObject(Handle(GEOM_Object) theGroup, int theS aDescr += (anEntry+", "); aDescr += (TCollection_AsciiString(theSubShapeID)+" )"); + aDescr = aFunction->GetDescription() + "\n\t" + aDescr; aFunction->SetDescription(aDescr); SetErrorCode(OK); @@ -540,11 +541,13 @@ Handle(GEOM_Object) GEOMImpl_IGroupOperations::GetMainShape(Handle(GEOM_Object) //Make a Python command TCollection_AsciiString anEntry, aDescr; TDF_Tool::Entry(aMainShape->GetEntry(), aDescr); - TDF_Tool::Entry(theGroup->GetEntry(), anEntry); aDescr += " = geompy.GetMainShape( "; + TDF_Tool::Entry(theGroup->GetEntry(), anEntry); aDescr += (anEntry+" )"); - theGroup->GetFunction(1)->SetDescription(aDescr); + aFunction = theGroup->GetFunction(1); + aDescr = aFunction->GetDescription() + "\n\t" + aDescr; + aFunction->SetDescription(aDescr); SetErrorCode(OK); return aMainShape; -- 2.39.2