mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-03-16 21:07:56 +05:00
Dump Python. In AddObject(), append python command
This commit is contained in:
parent
414efde457
commit
8f819a4836
@ -125,6 +125,7 @@ void GEOMImpl_IGroupOperations::AddObject(Handle(GEOM_Object) theGroup, int theS
|
|||||||
aDescr += (anEntry+", ");
|
aDescr += (anEntry+", ");
|
||||||
aDescr += (TCollection_AsciiString(theSubShapeID)+" )");
|
aDescr += (TCollection_AsciiString(theSubShapeID)+" )");
|
||||||
|
|
||||||
|
aDescr = aFunction->GetDescription() + "\n\t" + aDescr;
|
||||||
aFunction->SetDescription(aDescr);
|
aFunction->SetDescription(aDescr);
|
||||||
|
|
||||||
SetErrorCode(OK);
|
SetErrorCode(OK);
|
||||||
@ -540,11 +541,13 @@ Handle(GEOM_Object) GEOMImpl_IGroupOperations::GetMainShape(Handle(GEOM_Object)
|
|||||||
//Make a Python command
|
//Make a Python command
|
||||||
TCollection_AsciiString anEntry, aDescr;
|
TCollection_AsciiString anEntry, aDescr;
|
||||||
TDF_Tool::Entry(aMainShape->GetEntry(), aDescr);
|
TDF_Tool::Entry(aMainShape->GetEntry(), aDescr);
|
||||||
TDF_Tool::Entry(theGroup->GetEntry(), anEntry);
|
|
||||||
aDescr += " = geompy.GetMainShape( ";
|
aDescr += " = geompy.GetMainShape( ";
|
||||||
|
TDF_Tool::Entry(theGroup->GetEntry(), anEntry);
|
||||||
aDescr += (anEntry+" )");
|
aDescr += (anEntry+" )");
|
||||||
|
|
||||||
theGroup->GetFunction(1)->SetDescription(aDescr);
|
aFunction = theGroup->GetFunction(1);
|
||||||
|
aDescr = aFunction->GetDescription() + "\n\t" + aDescr;
|
||||||
|
aFunction->SetDescription(aDescr);
|
||||||
|
|
||||||
SetErrorCode(OK);
|
SetErrorCode(OK);
|
||||||
return aMainShape;
|
return aMainShape;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user