Salome HOME
Implementation of ACISPLUGIN as a GEOM plugin (added files)
[plugins/acisplugin.git] / doc / salome / examples / ACISPlugindemo.py
1 # Import/Export ACIS
2
3 import salome
4 salome.salome_init()
5 import GEOM
6 from salome.geom import geomBuilder
7 geompy = geomBuilder.New(salome.myStudy)
8
9 # Example of import from ACIS
10
11 # get a path to SAMPLES_SRC
12 import os
13 thePath = os.getenv("DATA_DIR")
14 # create filenames
15 theFileName = thePath + "/Shapes/Sat/Bug841_Robot01_ACIS_15_Volumique.sat"
16
17 # import shape
18 Shape1 = geompy.ImportACIS(theFileName)
19 geompy.addToStudy(Shape1, "Robot01_1")
20
21 # It is possible also to use next format of importing and publishing in study
22
23 Shape2 = geompy.ImportACIS(theFileName,"Robot01_2")