From: eap Date: Thu, 17 Mar 2005 08:33:18 +0000 (+0000) Subject: Dump Python. In AddObject(), append python command X-Git-Tag: T_22_03_05~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8f819a483643376cbae4f44fed80cd0aa5307a6e;p=modules%2Fgeom.git Dump Python. In AddObject(), append python command --- 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;