<component-author>Vadim SANDLER (VSR)</component-author>
<component-version>@SALOMESIERPINSKY_VERSION@</component-version>
<component-comment>unknown</component-comment>
- <component-multistudy>0</component-multistudy>
<component-icone>SIERPINSKY.png</component-icone>
<constraint></constraint>
<component-interface-list>
<?xml version='1.0' encoding='iso-8859-1' ?>
<proc name="schema_1">
- <property name="DefaultStudyID" value="6"/>
<type name="string" kind="string"/>
<struct name="Engines/dataref">
<member name="ref" type="string"/>
<?xml version='1.0' encoding='iso-8859-1' ?>
<proc name="schema_2">
- <property name="DefaultStudyID" value="6"/>
<type name="string" kind="string"/>
<struct name="Engines/dataref">
<member name="ref" type="string"/>
import VISU
orb = CORBA.ORB_init( [], CORBA.ORB_ID )
naming_service = SALOME_NamingServicePy.SALOME_NamingServicePy_i( orb )
- lcc = LifeCycleCORBA.LifeCycleCORBA( orb )
- studyManager = naming_service.Resolve( "myStudyManager" )._narrow( SALOMEDS.StudyManager )
- session = naming_service.Resolve( "/Kernel/Session" )._narrow( SALOME.Session )
- studyId = session.GetActiveStudyId()
- study = studyManager.GetStudyByID( studyId )
+ lcc = LifeCycleCORBA.LifeCycleCORBA( orb )
+ session = naming_service.Resolve( "/Kernel/Session" )._narrow( SALOME.Session )
aVisu = lcc.FindOrLoadComponent( "FactoryServer", "VISU" )
- aVisu.SetCurrentStudy( study )
aResult = aVisu.ImportFile( fileName );
aMesh = aVisu.MeshOnEntity( aResult, "Sierpinsky", VISU.NODE )
aViewManager = aVisu.GetViewManager()
}
// create MED 2.2 file
- MED::PWrapper aMed = MED::CrWrapper( theFileName, MED::eV2_2 );
+ MED::PWrapper aMed = MED::CrWrapperW( theFileName );
// create 2D mesh
MED::PMeshInfo aMesh = aMed->CrMeshInfo( 2, 2, "Sierpinsky" );