geom/doc/salome/examples/blocks_operations_ex03.py

24 lines
513 B
Python
Raw Normal View History

2013-02-12 17:35:16 +06:00
# Propagate
import salome
salome.salome_init()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New(salome.myStudy)
2013-02-12 17:35:16 +06:00
# create a box
2013-02-28 20:00:05 +06:00
check_box = geompy.MakeBoxDXDYDZ(200, 200, 200)
2013-02-12 17:35:16 +06:00
# build all possible propagation groups
listChains = geompy.Propagate(check_box)
# add objects in the study
geompy.addToStudy(check_box, "Box")
ii = 1
for chain in listChains:
geompy.addToStudyInFather(check_box, chain, "propagation chain " + `ii`)
ii = ii + 1
pass
salome.sg.updateObjBrowser(1)