# --- update the study object browser
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser(True)
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser(True)
ii = ii + 1
pass
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
geompy.addToStudy(glue2, "Glue two edges")
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser(True)
div = geompy.DivideEdgeByPoint( box, edge, [p1, p2], theName="box (edge divided)")
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
ii = ii + 1
pass
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
Joined_1 = geompy.RemoveInternalFaces(Partition_1)
geompy.addToStudy(Joined_1, 'Joined_1')
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
# display the contents of the group
gg.createAndDisplayGO(id_group1)
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
# display the contents of the group
gg.createAndDisplayGO(id_group1)
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
# display the contents of the group
gg.createAndDisplayGO(id_group1)
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
geompy.addToStudyInFather(Box_1, Group_4, 'Group_4')
geompy.addToStudyInFather(Box_1, Group_U_1_2, 'Group_U_1_2')
geompy.addToStudyInFather(Box_1, Group_UL_3_4, 'Group_UL_3_4')
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
geompy.addToStudyInFather(Box_1, Group_4, 'Group_4')
geompy.addToStudyInFather(Box_1, Group_I_1_3, 'Group_I_1_3')
geompy.addToStudyInFather(Box_1, Group_IL_1_3, 'Group_IL_1_3')
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
geompy.addToStudyInFather(Box_1, Group_4, 'Group_4')
geompy.addToStudyInFather(Box_1, Group_C_2_4, 'Group_C_2_4')
geompy.addToStudyInFather(Box_1, Group_CL_2_4, 'Group_CL_2_4')
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
box = geompy.MakeBoxDXDYDZ(200, 200, 200)
geompy.addToStudy( box, 'box' )
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser(True)
def TEST_getGeomObjectSelected():
Cut_1 = geompy.MakeBoolean(Chamfer_2, theShapeForCut, 2)
geompy.addToStudy(Cut_1, "Cut_1")
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
print "Information about fourth object: ", geompy.getObjectInfo(salome.myStudyId, obj4_entry)
print "Information about fifth object: ", geompy.getObjectInfo(salome.myStudyId, obj5_entry)
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
GEOM_Spanner.MakeSpanner(geompy, math, isBlocksTest, isMeshTest, smesh)
-salome.sg.updateObjBrowser(1);
+salome.sg.updateObjBrowser(True);
import salome_ComponentGUI
def addToStudy(shape, name):
i = geompy.addToStudy(shape, name)
- salome.sg.updateObjBrowser(0)
+ salome.sg.updateObjBrowser(False)
if not isinstance(geomgui, type(salome_ComponentGUI)):
geomgui.createAndDisplayGO(i)
return i
def addToStudy(shape, name):
i = geompy.addToStudy(shape, name)
- salome.sg.updateObjBrowser(0)
+ salome.sg.updateObjBrowser(False)
# geomgui.createAndDisplayGO(i)
return i
#
assemblage = geompy.Partition([base ,weld ,trav])
assemblageId = geompy.addToStudy(assemblage, "assemblage")
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
#
# Display
#
Line_1 = geompy.MakeLineTwoPnt(Vertex_4, Vertex_5)
geompy.addToStudy(Line_1, "Line_1")
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
salome.myStudyManager.SaveAs(theFilenameToSave, salome.myStudy, 0)
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
id_Compound_2 = geompy.addToStudy(Compound_2, "Compound_2")
id_Solid_2 = geompy.addToStudyInFather(Compound_2,Compound_2_solids[1], "Solid_2")
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
Wire_1 = geompy.MakeWire([Edge_1, Edge_2, Edge_3, Edge_4])
geompy.addToStudy(Wire_1, "Wire_1")
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
name = "Vertex_" + str(NbExplodedVertices_Box_1+NbExplodedVertices_Face_7+NbExplodedVertices_Face_10+NbExplodedVertices_Face_15+i+1)
geompy.addToStudyInFather(ListOfFaces_Partition_1[NbExplodedFaces_Partition_1-1], ListOfVertices_Face_18[i], name)
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)
self.addToStudyInFather(shape, group_edges, "Group of edges with " + `min_length`
+ left_str + "length" + right_str + `max_length`)
- sg.updateObjBrowser(1)
+ sg.updateObjBrowser(True)
return group_edges
# geompy.addToStudy( Sketch_1, 'Sketch_1' )
#
# # update object browser
-# salome.sg.updateObjBrowser(1)
+# salome.sg.updateObjBrowser(True)
# @endcode
# @n Additionnal examples can be found as unit tests in the source code.
# @}