6 ============================
7 Add a geometry to a document
8 ============================
10 To add a geometry to a document in python mode, you need the following arguments:
12 - *doc* : the document
13 - *geom* : the geometry
14 - *shape_name* : the name of the geometry
16 Use the function **addShape**::
18 doc = hexablock.addDocument (doc_name)
19 geom = geompy.ImportBREP (shape_name + ".brep")
20 shape = hexablock.addShape (doc, geom , shape_name)
22 GUI command: :ref:`guiaddgeometry`