import GEOM
import salome
from salome.geom import geomBuilder
- geompy = geomBuilder.New(salome.myStudy)
+ geompy = geomBuilder.New()
# create a cloud of points
points = [
import salome
from salome.smesh import smeshBuilder
- smesh = smeshBuilder.New(salome.myStudy)
+ smesh = smeshBuilder.New()
Mesh_tri = smesh.Mesh(geometry)
Regular_1D = Mesh_tri.Segment()
<component-author>vsv</component-author>
<component-version>@SALOMEPARAVIS_VERSION@</component-version>
<component-comment>PVServer control service</component-comment>
- <component-multistudy>1</component-multistudy>
<component-impltype>1</component-impltype>
<component-icone>pqAppIcon22.png</component-icone>
<constraint></constraint>
try:
import GEOM
from salome.geom import geomBuilder
- geompy = geomBuilder.New(salome.myStudy)
+ geompy = geomBuilder.New()
go = sobj.GetObject()._narrow(GEOM.GEOM_Object)
if go:
tmpf = tempfile.NamedTemporaryFile(suffix='.vtk')
try:
import SMESH
from salome.smesh import smeshBuilder
- mesh = smeshBuilder.New(salome.myStudy)
+ mesh = smeshBuilder.New()
mo = sobj.GetObject()._narrow(SMESH.SMESH_Mesh)
if mo:
tmpf = tempfile.NamedTemporaryFile(suffix='.med')
if (isMultiFile)
{
QStringList abuffer;
- abuffer.push_back(QString("def RebuildData( theStudy ):"));
+ abuffer.push_back(QString("def RebuildData():"));
QStringList lst(trace.split("\n"));
foreach(QString elem, lst)
{
salome.salome_init()
myStudy = salome.myStudy
-myStudyManager = salome.myStudyManager
data_file = datadir + "TimeStamps.med"
print "Save to file ", save_file
pvsimple.OpenDataFile(data_file)
-myStudyManager.SaveAs(save_file, myStudy, 0)
-myStudyManager.Close(myStudy)
+myStudy.SaveAs(save_file, 0, 0)
-openedStudy = myStudyManager.Open(data_file)
-myStudyManager.Close(openedStudy)
+myStudy.Open(data_file)
os.remove(save_file)
# run Salome
#salome_session = SalomeSession()
salome.salome_init()
-salome.myStudyManager.Close(salome.myStudy)
file_name = os.path.join(os.path.dirname(sys.argv[0]), "test1.hdf")
-opened_study = salome.myStudyManager.Open(file_name)
-salome.myStudy = opened_study
+salome.myStudy.Open(file_name)
# 3. Find IsoSurfaces
from pvsimple import *