--- /dev/null
+:tocdepth: 3
+
+.. _guiaddgeometry:
+
+============================
+Add a geometry to a document
+============================
+
+Only geometries added to a document can be used by that document.
+Vertices, Edges and Quadrangles of the model of blocks of a document can only be associated to those of a geometry that
+has already been added to that document.
+
+To add a geometry to a document:
+
+- *1-* Import the geometry (.brep, .step, ...) in the GEOM Module
+- *2-* Activate HexaBlock
+- *3-* Open your document or create a new one
+- *4-* In the **Main Menu** select **Association -> Add geometry**
+- *5-* Select the imported geometry and click the **Apply** button of the **Add geometry** Dialog Box
+
+
+ .. image:: _static/gui_addshape.png
+ :align: center
+
+.. centered::
+ Adding geometry to a document
+
+
+TUI command: :ref:`tuiaddgeometry`
\ No newline at end of file
gui_modify_elmts.rst
gui_modify_symmetry.rst
gui_association.rst
+ gui_add_geometry.rst
gui_asso_quad_to_geom.rst
gui_asso_vertex_to_geom.rst
gui_groups.rst
tui_modify_elmts.rst
tui_quad_revolution.rst
tui_association.rst
+ tui_add_geometry.rst
tui_asso_quad_to_geom.rst
tui_asso_vertex_to_geom.rst
tui_groups.rst
--- /dev/null
+:tocdepth: 3
+
+
+.. _tuiaddgeometry:
+
+============================
+Add a geometry to a document
+============================
+
+To add a geometry to a document in python mode, you need the following arguments:
+
+- *doc* : the document
+- *geom* : the geometry
+- *shape_name* : the name of the geometry
+
+Use the function **addShape**::
+
+ doc = hexablock.addDocument (doc_name)
+ geom = geompy.ImportBREP (shape_name + ".brep")
+ shape = hexablock.addShape (doc, geom , shape_name)
+
+GUI command: :ref:`guiaddgeometry`
docModel->setName( name );
aName->SetValue( name.toLatin1().data() );
getApp()->updateObjectBrowser();
- _dwPattern->setWindowTitle( name );
+// _dwPattern->setWindowTitle( name );
result = true;
}
}
currentDocGView = dgview;
showOnlyActor();
currentDocGView->getDocumentModel()->refresh();
- _dwPattern->setWindowTitle(currentDocGView->getDocumentModel()->getName());
+// _dwPattern->setWindowTitle(currentDocGView->getDocumentModel()->getName());
showAllMenus();
}