Salome HOME
Merge from V6_main 11/02/2013
[modules/geom.git] / doc / salome / examples / blocks_operations_ex03.py
1 # Propagate
2
3 import geompy
4 import salome
5
6 # create a box
7 box = geompy.MakeBoxDXDYDZ(200, 200, 200)
8
9 # build all possible propagation groups
10 listChains = geompy.Propagate(check_box)
11
12 # add objects in the study
13 geompy.addToStudy(check_box, "Box")
14 ii = 1
15 for chain in listChains:
16     geompy.addToStudyInFather(check_box, chain, "propagation chain " + `ii`)
17     ii = ii + 1
18     pass
19
20 salome.sg.updateObjBrowser(1)