import salome
salome.standalone()
-salome.salome_init(1)
+salome.salome_init(embedded=True)
from SketchAPI import *
from salome.shaper import model
import salome
salome.standalone()
-salome.salome_init(1)
+salome.salome_init(embedded=True)
model.begin()
partSet = model.moduleDocument()
__updated__ = "2015-05-22"
-salome.salome_init(1)
+salome.salome_init(embedded=True)
geompy = geomBuilder.New()
#=========================================================================
salome.standalone()
from salome.geom import geomBuilder
-salome.salome_init(1)
+salome.salome_init(embedded=True)
geompy = geomBuilder.New()
## Get the last object published in the GEOM section of the object browser
salome.standalone()
from salome.geom import geomBuilder
-salome.salome_init(1)
+salome.salome_init(embedded=True)
geompy = geomBuilder.New()
## Get the last object published in the GEOM section of the object browser
salome.standalone()
from salome.geom import geomBuilder
-salome.salome_init(1)
+salome.salome_init(embedded=True)
geompy = geomBuilder.New()
## Get the last object published in the GEOM section of the object browser
salome.standalone()
from salome.geom import geomBuilder
-salome.salome_init(1)
+salome.salome_init(embedded=True)
geompy = geomBuilder.New()
## Get the last object published in the GEOM section of the object browser
import salome
salome.standalone()
-salome.salome_init(1)
+salome.salome_init(embedded=True)
import os
import math
__updated__ = "2015-05-22"
salome.standalone()
-salome.salome_init(1)
+salome.salome_init(embedded=True)
#=========================================================================
# Help functions
import salome
salome.standalone()
-salome.salome_init(1)
+salome.salome_init(embedded=True)
data_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "data")
import salome
salome.standalone()
-salome.salome_init(1)
+salome.salome_init(embedded=True)
import os
import math
## List of objects created in the old geom for later use
self.geomObjects = []
## geomBuilder tool
- salome.salome_init(1)
+ salome.salome_init(embedded=True)
self.geompy = geomBuilder.New()
self.exportViaXAO()
EventsAPI.Events_InfoMessage("PublishToStudy", "Not all PartSet parts are up-to-date, nothing is published. Please, make the last PartSet feature as current.", self).send()
return
# find a shaper-study component
- salome.salome_init(1)
+ salome.salome_init(embedded=True)
aComponent = SHAPERSTUDY_utils.findOrCreateComponent()
anEngine = SHAPERSTUDY_utils.getEngine()
# collect all processed internal entries to break the link of unprocessed later
import salome
salome.salome_init_without_session()
-salome.salome_init(1)
+salome.salome_init(embedded=True)
if QApplication.instance() is None:
app = QApplication([])
import salome
salome.salome_init_without_session()
-salome.salome_init(1)
+salome.salome_init(embedded=True)
if QApplication.instance() is None:
app = QApplication([])
import salome
salome.salome_init_without_session()
-salome.salome_init(1)
+salome.salome_init(embedded=True)
if QApplication.instance() is None:
app = QApplication([])