Salome HOME
updated copyright message
[modules/hexablock.git] / doc / tui_add_geometry.rst
1 :tocdepth: 3
2
3
4 .. _tuiaddgeometry:
5
6 ============================
7 Add a geometry to a document
8 ============================
9
10 To add a geometry to a document in python mode, you need the following arguments:
11
12 - *doc*        : the document
13 - *geom*       : the geometry
14 - *shape_name* : the name of the geometry
15
16 Use the function **addShape**::
17
18     doc   = hexablock.addDocument (doc_name)
19     geom  = geompy.ImportBREP  (shape_name + ".brep")
20     shape = hexablock.addShape (doc, geom , shape_name)
21         
22 GUI command: :ref:`guiaddgeometry`