Back to index

salome-med  6.5.0
Functions | Variables
test_medclient Namespace Reference

Functions

def getMedObjectFromStudy

Variables

tuple med_comp = salome.lcc.FindOrLoadComponent("Truc1", "MED")
tuple my_comp = salome.lcc.FindOrLoadComponent("Truc2","TESTMEDCLIENT")
 studyCurrent = salome.myStudyName
tuple med_obj = med_comp.readStructFile("cube_hexa8_quad4.med",studyCurrent)
 First test.

Function Documentation

Definition at line 28 of file test_medclient.py.

00028 
00029 def getMedObjectFromStudy():
00030     mySO = salome.myStudy.FindObject("Objet MED")
00031     Builder = salome.myStudy.NewBuilder()
00032     anAttr = Builder.FindOrCreateAttribute(mySO, "AttributeIOR")
00033     obj = salome.orb.string_to_object(anAttr.Value())
00034     myObj = obj._narrow(SALOME_MED.MED)
00035     return myObj
00036 
00037 #Truc1,Truc2 are Containers launched with SALOME_Container exe.


Variable Documentation

tuple test_medclient.med_comp = salome.lcc.FindOrLoadComponent("Truc1", "MED")

Definition at line 38 of file test_medclient.py.

tuple test_medclient.med_obj = med_comp.readStructFile("cube_hexa8_quad4.med",studyCurrent)

First test.

med_obj = med_comp.readStructFile("cube_tetra4_12.med",studyCurrent) my_comp.go2(med_obj) Second test

Definition at line 49 of file test_medclient.py.

tuple test_medclient.my_comp = salome.lcc.FindOrLoadComponent("Truc2","TESTMEDCLIENT")

Definition at line 39 of file test_medclient.py.

test_medclient.studyCurrent = salome.myStudyName

Definition at line 40 of file test_medclient.py.