10 Acces to HexaBlock component in python language::
14 Add a new empty document in the session::
16 doc = hexablock.addDocument(name)
19 Add a new document loaded from a *xml* file::
21 doc2 = hexablock.loadDocument(filename)
23 Get the number of opened document in the session::
25 nd = hexablock.countDocument()
27 Get the document number *i*::
29 doc_i = hexablock.getDocument(i)
31 Remove a document in the session::
33 hexablock.removeDocument(doc_i)
35 Set the current study::
37 hexablock.SetCurrentStudy(theStudy)
39 Get a document from the current study::
41 doc = hexablock.getFromStudy(doc_entry)
43 Add a document in the current study::
45 hexablock.addToStudy(doc)
47 A tool to dump a model of block::
49 hexablock.dump(doc, [mesh, [full]])
51 - doc: the document to dump
52 - mesh: an optional mesh of this document
55 - False: to have a short dump (by default)
56 - True: to have a full dump
59 GUI command: :ref:`guicomponent`