Salome HOME
Abu : Mise a jour HEXABLOCK
[modules/hexablock.git] / doc / tui_document.rst
1 :tocdepth: 3
2
3 .. _tuidocument:
4
5 ========
6 Document
7 ========
8
9 Give the name of a document::
10
11     name = doc.getName()
12
13 Set the name of a document::
14
15     doc.setName(name)
16
17 Save a document in a "XML" file::
18
19     doc.save(filename)
20
21 Save the model of blocks of a document in a "VTK" file::
22
23     doc.saveVtk(filename)
24
25 Set the tolerance need to find element::
26
27     doc.setTolerance(0.0001)
28
29 Get the tolerance::
30
31     tol = doc.getTolerance()
32   
33 Set Debug level (long)::
34   
35         doc.setLevel(debug_level)
36
37 Removes elements of type Quad Edge or Vertex not belonging to an Hexa::
38
39         doc.purge()
40         
41 Associate a shape to the document::
42
43         doc.setShape(shape)
44
45 Gets the shape associated to the document:: 
46         
47         doc.getShape()
48
49 Gets the Brep associated to the document::
50
51         doc.getBrep()
52         
53         
54 GUI command: :ref:`guidocument`