]> SALOME platform Git repositories - modules/gui.git/blob - doc/salome/gui/KERNEL/dump_study.htm
Salome HOME
570547cbafe187ff0691ba181a0d0575a89167fc
[modules/gui.git] / doc / salome / gui / KERNEL / dump_study.htm
1 <!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">\r
2 \r
3 <html>\r
4 \r
5 <head>\r
6 <title>Dump Study</title>\r
7 <meta http-equiv="content-type" content="text/html; charset=windows-1252">\r
8 <meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com">\r
9 <link rel="stylesheet" href="default_ns.css"><script type="text/javascript" language="JavaScript" title="WebHelpSplitCss">\r
10 <!--\r
11 if (navigator.appName !="Netscape")\r
12 {   document.write("<link rel='stylesheet' href='default.css'>");}\r
13 //-->\r
14 </script>\r
15 <style type="text/css">\r
16 <!--\r
17 p.whs1 { font-weight:bold; margin-left:40px; }\r
18 img_whs2 { border:none; width:461px; height:270px; float:none; border-style:none; }\r
19 ul.whs3 { list-style:disc; }\r
20 p.whs4 { margin-left:48px; }\r
21 p.whs5 { font-family:'Times New Roman' , serif; margin-left:40px; }\r
22 p.whs6 { margin-left:0px; }\r
23 p.whs7 { margin-left:40px; }\r
24 -->\r
25 </style><script type="text/javascript" language="JavaScript">\r
26 <!--\r
27 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))\r
28 {\r
29   var strNSS = "<style type='text/css'>";\r
30   strNSS += "p.whs6 {margin-left:1pt; }";\r
31   strNSS +="</style>";\r
32   document.write(strNSS);\r
33 }\r
34 //-->\r
35 </script>\r
36 <script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
37 <!--\r
38 function reDo() {\r
39   if (innerWidth != origWidth || innerHeight != origHeight)\r
40      location.reload();\r
41 }\r
42 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {\r
43         origWidth = innerWidth;\r
44         origHeight = innerHeight;\r
45         onresize = reDo;\r
46 }\r
47 onerror = null; \r
48 //-->\r
49 </script>\r
50 <style type="text/css">\r
51 <!--\r
52 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }\r
53 -->\r
54 </style><script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>\r
55 <script type="text/javascript" language="javascript" src="whver.js"></script>\r
56 <script type="text/javascript" language="javascript1.2" src="whproxy.js"></script>\r
57 <script type="text/javascript" language="javascript1.2" src="whutils.js"></script>\r
58 <script type="text/javascript" language="javascript1.2" src="whtopic.js"></script>\r
59 </head>\r
60 <body><script type="text/javascript" language="javascript1.2">\r
61 <!--\r
62 if (window.gbWhTopic)\r
63 {\r
64         if (window.addTocInfo)\r
65         {\r
66         addTocInfo("GUI module\nStudy management\nWorking with Python Scripts");\r
67 addButton("show",BTN_TEXT,"Show","","","","",0,0,"","","");\r
68 \r
69         }\r
70         if (window.writeBtnStyle)\r
71                 writeBtnStyle();\r
72 \r
73         if (window.writeIntopicBar)\r
74                 writeIntopicBar(1);\r
75 \r
76         if (window.setRelStartPage)\r
77         {\r
78         setRelStartPage("kernel.htm");\r
79 \r
80                 autoSync(1);\r
81                 sendSyncInfo();\r
82                 sendAveInfoOut();\r
83         }\r
84 }\r
85 else\r
86         if (window.gbIE4)\r
87                 document.location.reload();\r
88 //-->\r
89 </script>\r
90 <h1>Working with Python Scripts</h1>\r
91 \r
92 <p><span style="font-weight: bold;"><B>SALOME </B></span>Platform can be launched \r
93  in the batch mode, without Graphical User Interface, and operated with \r
94  the use of Python scripts, which can fulfill most of the necessary tasks, \r
95  however, the process of scripting is quite time consuming and rather error-prone. \r
96  </p>\r
97 \r
98 <p>This problem has been resolved by the possibility to automatically generate \r
99  a set of Python scripts from data created with SALOME GUI, which greatly \r
100  increases the productivity of using SALOME platform in the batch mode. \r
101  This mechanism can convert a SALOMEDS Study in one or several Python scripts, \r
102  which can be stored and imported later to re-create the content of the \r
103  original study. The first script is a SALOMEDS document, which re-creates \r
104  the SALOMEDS Study, adds the stored Salome components to the SALOMEDS \r
105  and automatically calls Python scripts of the second type containing component \r
106  specific Python function calls. This architecture gives great flexibility \r
107  in manual modification of the generated scripts because you can modify \r
108  only one of the component specific Python scripts without touching others, \r
109  thus avoiding expert knowledge of Python API of unused components. </p>\r
110 \r
111 <p>&nbsp;</p>\r
112 \r
113 <p>To Dump a &nbsp;SALOME \r
114  Study in one or several scripts, in the main menu select <span style="font-weight: bold;"><B>File</B></span> \r
115  --&gt; <span style="font-weight: bold;"><B>Dump study</B></span></p>\r
116 \r
117 <p>The following dialog box allowing to browse for the location and define \r
118  the name for a Python file will appear: </p>\r
119 \r
120 <p>&nbsp;</p>\r
121 \r
122 <p class="whs1"><img src="pics/dumpstudy.png" x-maintain-ratio="TRUE" width="461px" height="270px" border="0" class="img_whs2"></p>\r
123 \r
124 <p>&nbsp;</p>\r
125 \r
126 <ul type="disc" class="whs3">\r
127         \r
128         <li class=kadov-p><p class="whs4"><span style="font-weight: bold;"><B>Publish \r
129  in study - </B></span>if checked in, the component objects created by Python \r
130  commands will be published in the created Study when the script is played, \r
131  otherwise the objects will not be published in the Study.</p></li>\r
132         \r
133         <li class=kadov-p><p class="whs4"><span style="font-weight: bold;"><B>Save \r
134  GUI state</B></span> - if checked in, the current application layout will \r
135  be saved in the Python file. &nbsp;</p></li>\r
136 </ul>\r
137 \r
138 <p>&nbsp;</p>\r
139 \r
140 <p class="whs5">To \r
141  confirm your choice click <span style="font-weight: bold;"><B>Save</B></span>.</p>\r
142 \r
143 <p class="whs5">&nbsp;</p>\r
144 \r
145 <p class="whs6">Reversibly it is possible to load a saved \r
146  Python Script selecting in the main menu <span style="font-weight: bold;"><B>File</B></span> \r
147  -&gt; <span style="font-weight: bold;"><B>Load Script</B></span>. </p>\r
148 \r
149 <p class="whs6">&nbsp;</p>\r
150 \r
151 <p class="whs7"><img src="pics/loadscript.png" x-maintain-ratio="TRUE" width="461px" height="270px" border="0" class="img_whs2"></p>\r
152 \r
153 <p>&nbsp;</p>\r
154 \r
155 <p class="whs5">To \r
156  confirm your choice click <span style="font-weight: bold;"><B>Open.</B></span></p>\r
157 \r
158 <p>&nbsp;</p>\r
159 \r
160 <script type="text/javascript" language="javascript1.2">\r
161 <!--\r
162 if (window.writeIntopicBar)\r
163         writeIntopicBar(0);\r
164 //-->\r
165 </script>\r
166 </body>\r
167 </html>\r