| 1 | = SALOME = |
| 2 | |
| 3 | == Namestitev |
| 4 | |
| 5 | Za namestitev SALOME-a shranite Windows paket SALOME-8.3.0-WIN64.exe ki se nahaja na spodnji povezavi: |
| 6 | |
| 7 | http://www.salome-platform.org/downloads/current-version |
| 8 | |
| 9 | Odpakirajte Windows paket SALOME-8.3.0-WIN64.exe kot administrator (desni klik --> Run as Administrator) v C:\Program Files. |
| 10 | |
| 11 | Program SALOME se zažene s skriptom run_salome.bat ki se nahaja v C:\Program Files\SALOME-8.3.0-WIN64\WORK. |
| 12 | |
| 13 | == Primer primitiva |
| 14 | |
| 15 | Uporabljali bomo [htdocs:doc8.3.0/index.html navodila za Salome 8.3]. |
| 16 | Za programiranje v geometrijskem modulu si poglejte [htdocs:doc8.3.0/gui/GEOM/python_interface.html Geometry module Python Interface]. |
| 17 | |
| 18 | {{{ |
| 19 | #!python |
| 20 | >>> import salome |
| 21 | >>> import GEOM |
| 22 | >>> from salome.geom import geomBuilder |
| 23 | >>> geompy = geomBuilder.New(salome.myStudy) |
| 24 | >>> box = geompy.MakeBox(10.0,10.0,10.0, 20, 20, 20) |
| 25 | >>> geompy.addToStudy(box, 'Skatla') |
| 26 | >>> salome.sg.updateObjBrowser(True) |
| 27 | }}} |