wiki:salome

Version 1 (modified by Leon Kos, 7 years ago) (diff)

Primer primitiva

SALOME

Namestitev

Za namestitev SALOME-a shranite Windows paket SALOME-8.3.0-WIN64.exe ki se nahaja na spodnji povezavi:

http://www.salome-platform.org/downloads/current-version

Odpakirajte Windows paket SALOME-8.3.0-WIN64.exe kot administrator (desni klik --> Run as Administrator) v C:\Program Files.

Program SALOME se zažene s skriptom run_salome.bat ki se nahaja v C:\Program Files\SALOME-8.3.0-WIN64\WORK.

Primer primitiva

Uporabljali bomo navodila za Salome 8.3. Za programiranje v geometrijskem modulu si poglejte Geometry module Python Interface.

>>> import salome
>>> import GEOM
>>> from salome.geom import geomBuilder
>>> geompy = geomBuilder.New(salome.myStudy)
>>> box =  geompy.MakeBox(10.0,10.0,10.0, 20, 20, 20)
>>> geompy.addToStudy(box, 'Skatla')
>>> salome.sg.updateObjBrowser(True)

Attachments (27)