0023360: [CEA 1963] Use salome.sg.updateObjBrowser(True) instead of salome.sg.updateObjBrowser(1)

This commit is contained in:
vsr 2016-10-06 11:20:14 +03:00
parent dd0d39d752
commit e18c7bf133
129 changed files with 139 additions and 139 deletions

View File

@ -59,4 +59,4 @@ Mesh_1.Tetrahedron()
Mesh_1.Compute()
if salome.sg.hasDesktop():
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -78,4 +78,4 @@ Compound2 = smesh.Concatenate([Mesh_inf, Mesh_sup], 1, 0, 1e-05, True,
name='Compound_with_UniteGrps_and_GrpsOfAllElems')
if salome.sg.hasDesktop():
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -77,4 +77,4 @@ aGroup.Remove( [2,3,4] )
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -43,4 +43,4 @@ aSmeshGroup1 = quadra.GroupOnGeom(face, "SMESHGroup1")
# create SMESH group on <aGeomGroupE> with default name
aSmeshGroup2 = quadra.GroupOnGeom(aGeomGroupE)
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -46,4 +46,4 @@ filt2.SetCriteria( [ smesh.GetCriterion( SMESH.FACE, SMESH.FT_RangeOfIds, "1-70"
filtIDs3 = filtGroup.GetIDs()
print "After filter modification, group on filter contains %s elemens" % filtGroup.Size()
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -41,4 +41,4 @@ for i in range(len(aGroupElemIDs)):
pass
print ""
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -50,4 +50,4 @@ aGroup4.Add(anIds)
aGroup5 = mesh.UnionListOfGroups([aGroup3, aGroup4], "Any Area")
print "Criterion: Any Area, Nb = ", len(aGroup5.GetListOfID())
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -34,4 +34,4 @@ aGroup3 = mesh.IntersectListOfGroups([aGroup1, aGroup2], "20 < Area < 60")
print "Criterion: 20 < Area < 60, Nb = ", len(aGroup3.GetListOfID())
# Please note that also there is IntersectGroups() method which works with two groups only
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -32,4 +32,4 @@ aGroupRes = mesh.CutGroups(aGroupMain, aGroupTool, "Area >= 60")
print "Criterion: Area >= 60, Nb = ", len(aGroupRes.GetListOfID())
# Please note that also there is CutListOfGroups() method which works with lists of groups of any lengths
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -28,4 +28,4 @@ aGrp = mesh.CreateDimGroup( [aSrcGroup1, aSrcGroup2], SMESH.EDGE, "Edges" )
# Create group of nodes using source groups of faces
aGrp = mesh.CreateDimGroup( [aSrcGroup1, aSrcGroup2], SMESH.NODE, "Nodes" )
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -34,4 +34,4 @@ f1 = MakePolygon(mesh, 0, 0, 0, 30, 13)
f2 = MakePolygon(mesh, 0, 0, 10, 21, 9)
f3 = MakePolygon(mesh, 0, 0, 20, 13, 6)
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -60,4 +60,4 @@ mesh.AddPolyhedralVolume([dd[0], dd[1], dd[2], dd[3], dd[4], # top
[5,5,5,5,5,5,5,5,5,5,5,5])
if salome.sg.hasDesktop():
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -51,4 +51,4 @@ res = mesh.InverseDiag(bb[1], tt[2])
if not res: print "failed!"
else: print "done."
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -51,4 +51,4 @@ res = mesh.DeleteDiag(bb[1], tt[2])
if not res: print "failed!"
else: print "done."
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -51,4 +51,4 @@ res = mesh.TriToQuad([ff[2], ff[3], ff[4], ff[5]], SMESH.FT_MinimumAngle, 60.)
if not res: print "failed!"
else: print "done."
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -42,4 +42,4 @@ f5 = mesh.AddFace([n5, n6, n12, n11])
# Change the orientation of the second and the fourth faces.
mesh.Reorient([2, 4])
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -32,4 +32,4 @@ print "\nSmoothing ... ",
if not res: print "failed!"
else: print "done."
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -31,4 +31,4 @@ GroupTri = mesh.GroupOnGeom(face, "Group of faces (extrusion)", SMESH.FACE)
# perform extrusion of the group
mesh.ExtrusionSweepObject(GroupTri, vector, 5)
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -128,4 +128,4 @@ error = quad_6.ExtrusionAlongPath(ff_6 , Edge_Circle_mesh, Edge_Circle, 1,
error = quad_7.ExtrusionAlongPath(ff_7, Edge_Circle_mesh, Edge_Circle, 1,
1, [a45, -a45, a45, -a45, a45, -a45, a45, -a45], 0, refPoint)
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -44,4 +44,4 @@ print ""
aGroup = mesh.GetMesh().CreateGroup(SMESH.EDGE, "Free borders")
aGroup.Add(anIds)
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -46,4 +46,4 @@ print ""
aGroup = mesh.GetMesh().CreateGroup(SMESH.EDGE, "Borders at multi-connections")
aGroup.Add(anIds)
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -46,4 +46,4 @@ print ""
aGroup = mesh.GetMesh().CreateGroup(SMESH.EDGE, "Edges with length > " + `length_margin`)
aGroup.Add(anIds)
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -37,4 +37,4 @@ for i in range(len(aBorders)):
aGroupF.Add([aBorder.myElemId])
aGroupN.Add([aBorder.myPnt1, aBorder.myPnt2])
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -51,4 +51,4 @@ for i in range(len(anNodeIds)):
pass
print ""
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -75,4 +75,4 @@ aFaceIds = Mesh_1.GetIdsFromFilter(aFilter)
aGroup = Mesh_1.CreateEmptyGroup(SMESH.FACE, "Shared_faces")
aGroup.Add(aFaceIds)
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -47,4 +47,4 @@ print ""
aGroup = mesh.CreateEmptyGroup(SMESH.FACE, "Faces with length 2D > " + `length_margin`)
aGroup.Add(anIds)
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -47,4 +47,4 @@ print ""
aGroup = mesh.CreateEmptyGroup(SMESH.FACE, "Borders at multi-connection 2D = " + `nb_conn`)
aGroup.Add(anIds)
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -28,4 +28,4 @@ print ""
aGroup = mesh.CreateEmptyGroup(SMESH.FACE, "Area > " + `area_margin`)
aGroup.Add(anIds)
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -28,4 +28,4 @@ print ""
aGroup = mesh.CreateEmptyGroup(SMESH.FACE, "Taper > " + `taper_margin`)
aGroup.Add(anIds)
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -28,4 +28,4 @@ print ""
aGroup = mesh.CreateEmptyGroup(SMESH.FACE, "Aspect Ratio > " + `ar_margin`)
aGroup.Add(anIds)
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -29,4 +29,4 @@ aGroup = mesh.CreateEmptyGroup(SMESH.FACE, "Minimum Angle < " + `min_angle`)
aGroup.Add(anIds)
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -29,4 +29,4 @@ aGroup = mesh.CreateEmptyGroup(SMESH.FACE, "Warp > " + `wa_margin`)
aGroup.Add(anIds)
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -28,4 +28,4 @@ print ""
aGroup = mesh.CreateEmptyGroup(SMESH.FACE, "Skew > " + `skew_margin`)
aGroup.Add(anIds)
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -28,4 +28,4 @@ print ""
aGroup = mesh.CreateEmptyGroup(SMESH.FACE, "Element Diameter 2D > " + `mel_2d_margin`)
aGroup.Add(anIds)
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -29,4 +29,4 @@ aGroup = mesh.CreateEmptyGroup(SMESH.VOLUME, "Aspect Ratio 3D > " + `ar_margin`)
aGroup.Add(anIds)
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -30,4 +30,4 @@ aGroup = mesh.CreateEmptyGroup(SMESH.VOLUME, "Volume < " + `volume_margin`)
aGroup.Add(anIds)
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -28,4 +28,4 @@ print ""
aGroup = mesh.CreateEmptyGroup(SMESH.FACE, "Element Diameter 3D > " + `mel_3d_margin`)
aGroup.Add(anIds)
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -77,4 +77,4 @@ print "Triangles : ", trias.NbTriangles()
print "Quadrangles: ", trias.NbQuadrangles()
print "Volumes : ", trias.NbVolumes()
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -92,4 +92,4 @@ mesh.DoubleElements([ 1, 2 ])
# Update object browser
if salome.sg.hasDesktop():
salome.sg.updateObjBrowser(0)
salome.sg.updateObjBrowser(False)

View File

@ -207,7 +207,7 @@ def TEST_createBoxMesh():
smesh.SetName(boxmesh.GetMesh(), 'boxmesh')
if salome.sg.hasDesktop():
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)
#
# Definitions:

View File

@ -103,5 +103,5 @@ print "---------------------Compute the mesh"
ret = mesh.Compute()
print ret
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -81,4 +81,4 @@ mesh2.Compute()
# ---- udate object browser
salome.sg.updateObjBrowser(1);
salome.sg.updateObjBrowser(True)

View File

@ -90,4 +90,4 @@ mesh1.Compute()
mesh2.Compute()
# ---- update object browser
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -217,4 +217,4 @@ for i in range(0,nbrs):
oldnodes = newnodes
pass
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -63,4 +63,4 @@ print "anIds = ", anIds
#anIds = CheckBelongToGeomFilterOld(smesh,mesh.GetMesh(),box,box,anElemType)
#print "anIds = ", anIds
salome.sg.updateObjBrowser(1);
salome.sg.updateObjBrowser(True)

View File

@ -104,4 +104,4 @@ Compound2 = smesh.Concatenate([Mesh_inf.GetMesh(), Mesh_sup.GetMesh()], 1, 0, 1e
smesh.SetName(Compound2, 'Compound_with_UniteGrps_and_GrpsOfAllElems')
#end
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -47,4 +47,4 @@ geompy.addToStudy(aGeomGroup2, "Group on Edges")
aSmeshGroup1 = mesh.GroupOnGeom(aGeomGroup1, "SMESHGroup1", SMESH.FACE)
aSmeshGroup2 = mesh.GroupOnGeom(aGeomGroup2, "SMESHGroup2", SMESH.EDGE)
salome.sg.updateObjBrowser(1);
salome.sg.updateObjBrowser(True)

View File

@ -74,4 +74,4 @@ mesh.Compute()
print "aGroupOnShell size =", aGroupOnShell.Size()
print "aGroupOnShell ids :", aGroupOnShell.GetListOfID()
salome.sg.updateObjBrowser(1);
salome.sg.updateObjBrowser(True)

View File

@ -47,4 +47,4 @@ BuildGroupLyingOn(mesh.GetMesh(), SMESH.FACE, "Group of faces lying on edge #1",
# Second way
mesh.MakeGroup("Group of faces lying on edge #2", SMESH.FACE, SMESH.FT_LyingOnGeom, edge)
salome.sg.updateObjBrowser(1);
salome.sg.updateObjBrowser(True)

View File

@ -158,4 +158,4 @@ print "Number of quadrangles : ", mesh.NbQuadrangles()
print "Number of volumes : ", mesh.NbVolumes()
print "Number of tetrahedrons: ", mesh.NbTetras()
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -184,4 +184,4 @@ if ret != 0:
else:
print "problem when computing the mesh"
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -118,4 +118,4 @@ my_hexa.Quadrangle()
my_hexa.Hexahedron()
my_hexa.Compute()
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -46,4 +46,4 @@ isMeshTest = 1 # True
GEOM_Spanner.MakeSpanner(geompy, math, isBlocksTest, isMeshTest, smesh)
salome.sg.updateObjBrowser(1);
salome.sg.updateObjBrowser(True)

View File

@ -70,4 +70,4 @@ alg3D.SetName("algo3D")
box_mesh.Compute()
sg.updateObjBrowser(1)
sg.updateObjBrowser(True)

View File

@ -138,4 +138,4 @@ if ret != 0:
else:
print "probleme when computing the mesh"
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -148,4 +148,4 @@ if ret != 0:
else:
print "probleme when computing the mesh"
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -107,4 +107,4 @@ if ret != 0:
else:
print "probleme when computing the mesh"
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -141,4 +141,4 @@ print "Criterion: Element Diameter 2D > 10 Nb = ", len( anIds )
#print anIds[ i ]
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -176,7 +176,7 @@ for i in range(8):
smesh.SetName(algo.GetSubMesh(), "SubMeshEdgeZ_"+str(i+1))
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)
print "-------------------------- compute the mesh of the volume"
@ -197,4 +197,4 @@ if ret != 0:
else:
print "problem when Computing the mesh"
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -99,4 +99,4 @@ if ret != 0:
else:
print "problem when Computing the mesh"
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -76,4 +76,4 @@ if ret != 0:
else:
print "problem when computing the mesh"
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -123,4 +123,4 @@ if ret != 0:
else:
print "problem when computing the mesh"
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -107,4 +107,4 @@ if ret != 0:
else:
print "probleme when computing the mesh"
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -75,4 +75,4 @@ print "Criterion: Free edges Nb = ", len( anIds )
for i in range( len( anIds ) ):
print anIds[ i ]
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -58,7 +58,7 @@ idblob = geompy.addToStudy(blob,"blob")
edgeGroups = geompy.Propagate( blob )
assert len( edgeGroups ) == 3
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)
# -----------------------------------------------------------------------------
@ -98,4 +98,4 @@ if ok:
else:
print "problem when Computing the mesh"
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -188,4 +188,4 @@ print "Number of quadrangles : ", mesh.NbQuadrangles()
print "Number of volumes : ", mesh.NbVolumes()
print "Number of tetrahedrons: ", mesh.NbTetras()
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -234,4 +234,4 @@ mesh.RotationSweepObject(GroupRotate, axisXYZ, angle45, 4, 1e-5)
#9 reorientation of the submesh1
mesh.ReorientObject(submesh1)
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -135,4 +135,4 @@ if ret != 0:
else:
print "problem when computing the mesh"
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -158,4 +158,4 @@ print "Number of quadrangles: ", mesh.NbQuadrangles()
print "Number of volumes : ", mesh.NbVolumes()
print "Number of tetrahedrons: ", mesh.NbTetras()
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -60,7 +60,7 @@ for f in subShapeList:
print name
idedge.append( geompy.addToStudyInFather(box, f, name) )
salome.sg.updateObjBrowser(1);
salome.sg.updateObjBrowser(True)
# ---- launch SMESH
smeshgui = salome.ImportComponentGUI("SMESH")
@ -115,5 +115,5 @@ algo = mesh.Triangle()
algo.MaxElementArea(2500)
salome.sg.updateObjBrowser(1);
salome.sg.updateObjBrowser(True)

View File

@ -147,4 +147,4 @@ for a in log:
ii = ii+1
print "AddTriangle %i - %i %i %i" % (ind, i1, i2, i3)
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -63,4 +63,4 @@ name = geompy.SubShapeName(edge, face)
print name
idedge = geompy.addToStudyInFather(face, edge, name)
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -110,4 +110,4 @@ print hypArea2.GetMaxElementArea()
smesh.SetName(hypArea2, "MaxElementArea_500")
salome.sg.updateObjBrowser(1);
salome.sg.updateObjBrowser(True)

View File

@ -111,7 +111,7 @@ smesh.SetName(hypArea2, "MaxElementArea_500")
mesh.Compute()
salome.sg.updateObjBrowser(1);
salome.sg.updateObjBrowser(True)
sg = salome.ImportComponentGUI('SMESH')
if type(sg) != type(salome.salome_ComponentGUI):

View File

@ -35,4 +35,4 @@ log = mesh.GetLog(0); # no erase trace
for linelog in log:
print linelog
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -77,4 +77,4 @@ if len(faces) > 1:
group1.Add(faces[:int(len(faces)/2)])
group2.Add(faces[int(len(faces)/2):])
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -81,4 +81,4 @@ for iFile in range(len(aListDir)) :
ConvertMED2UNV(aPath,aFileName)
#break
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -323,4 +323,4 @@ hexa.Compute()
# Update object browser
# ---------------------
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -125,4 +125,4 @@ hexa.Compute()
# Update object browser
# ---------------------
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -112,4 +112,4 @@ hexa.Compute()
# Update object browser
# ---------------------
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -117,4 +117,4 @@ mixed.Compute()
# Update object browser
# ---------------------
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -152,4 +152,4 @@ hexa.Compute()
# Update object browser
# ---------------------
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -169,4 +169,4 @@ hexa.Compute()
# Update object browser
# ---------------------
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -109,4 +109,4 @@ hexa.Compute()
# Update object browser
# ---------------------
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -142,4 +142,4 @@ hexa.Compute()
# Update object browser
# ---------------------
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -145,4 +145,4 @@ hexa.Compute()
# Update object browser
# ---------------------
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -107,4 +107,4 @@ hexa.Compute()
# Update object browser
# ---------------------
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -128,4 +128,4 @@ hexa.Compute()
# Update object browser
# ---------------------
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -143,4 +143,4 @@ hexa.Compute()
# Update object browser
# ---------------------
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -261,4 +261,4 @@ hexa.Compute()
# Update object browser
# ---------------------
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -146,4 +146,4 @@ hexa.Compute()
# Update object browser
# ---------------------
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -205,4 +205,4 @@ hexa.Compute()
# Update object browser
# ---------------------
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -149,4 +149,4 @@ hexa.Compute()
# Update object browser
# ---------------------
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -107,4 +107,4 @@ hexa.Compute()
# Update object browser
# ---------------------
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -145,4 +145,4 @@ hexa.Compute()
# Update object browser
# ---------------------
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -190,4 +190,4 @@ hexa_groupe = hexa.Group(groupe)
# Update object browser
# ---------------------
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -136,4 +136,4 @@ tetra.Group(group)
# Update object browser
# ---------------------
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -134,4 +134,4 @@ hexa.Group(group_1)
# Update object browser
# ---------------------
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -229,4 +229,4 @@ MyMesh.ExportMED(path+str(NbCells4)+"_triangles.med", 0)
# Update the object browser
# -------------------------
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(True)

View File

@ -87,5 +87,5 @@ aIntGrp=Mesh_1.IntersectListOfGroups([aRedGroup, aGreenGroup, aBlueGroup], "IntG
# CutListOfGroups()
aCutGrp=Mesh_1.CutListOfGroups([aRedGroup],[aGreenGroup,aBlueGroup],"CutGrp")
salome.sg.updateObjBrowser( 1 )
salome.sg.updateObjBrowser(True)

Some files were not shown because too many files have changed in this diff Show More