mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-23 18:35:38 +05:00
bos #19182: GEOM appears in Object browser when calling SMESH from python
This commit is contained in:
parent
dd7a8e88ba
commit
5088f18afd
@ -836,17 +836,11 @@ class geomBuilder(GEOM._objref_GEOM_Gen):
|
|||||||
self.myStudy = salome.myStudy
|
self.myStudy = salome.myStudy
|
||||||
self.myBuilder = self.myStudy.NewBuilder()
|
self.myBuilder = self.myStudy.NewBuilder()
|
||||||
self.father = self.myStudy.FindComponent("GEOM")
|
self.father = self.myStudy.FindComponent("GEOM")
|
||||||
notebook.myStudy = salome.myStudy
|
|
||||||
if self.father is None:
|
# load data from the study file, if necessary
|
||||||
self.father = self.myBuilder.NewComponent("GEOM")
|
if self.father:
|
||||||
A1 = self.myBuilder.FindOrCreateAttribute(self.father, "AttributeName")
|
self.myBuilder.LoadWith(self.father, self)
|
||||||
FName = A1._narrow(SALOMEDS.AttributeName)
|
|
||||||
FName.SetValue("Geometry")
|
|
||||||
A2 = self.myBuilder.FindOrCreateAttribute(self.father, "AttributePixMap")
|
|
||||||
aPixmap = A2._narrow(SALOMEDS.AttributePixMap)
|
|
||||||
aPixmap.SetPixMap("ICON_OBJBROWSER_Geometry")
|
|
||||||
self.myBuilder.DefineComponentInstance(self.father,self)
|
|
||||||
pass
|
|
||||||
self.BasicOp = self.GetIBasicOperations ()
|
self.BasicOp = self.GetIBasicOperations ()
|
||||||
self.CurvesOp = self.GetICurvesOperations ()
|
self.CurvesOp = self.GetICurvesOperations ()
|
||||||
self.PrimOp = self.GetI3DPrimOperations ()
|
self.PrimOp = self.GetI3DPrimOperations ()
|
||||||
@ -866,8 +860,7 @@ class geomBuilder(GEOM._objref_GEOM_Gen):
|
|||||||
self.myUseCaseBuilder.SetRootCurrent()
|
self.myUseCaseBuilder.SetRootCurrent()
|
||||||
self.myUseCaseBuilder.Append(self.father)
|
self.myUseCaseBuilder.Append(self.father)
|
||||||
|
|
||||||
# load data from the study file, if necessary
|
notebook.myStudy = salome.myStudy
|
||||||
self.myBuilder.LoadWith(self.father, self)
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def GetPluginOperations(self, libraryName):
|
def GetPluginOperations(self, libraryName):
|
||||||
|
Loading…
Reference in New Issue
Block a user