import SALOME_Session_idl
import SALOMEDS
import SALOME_MED
+import SALOME_ModuleCatalog
from omniORB import CORBA
from string import *
from time import sleep
aSComponent = aStudyBuilder.NewComponent(aComponentDataType);
aName = aStudyBuilder.FindOrCreateAttribute(aSComponent,"AttributeName")
- aModuleCatalog = myNamingService.Resolve("/Kernel/ModulCatalog");
+ aModuleCatalogObj = myNamingService.Resolve("/Kernel/ModulCatalog");
+ aModuleCatalog = aModuleCatalogObj._narrow(SALOME_ModuleCatalog.ModuleCatalog)
aComponent = aModuleCatalog.GetComponent(aComponentDataType);
if aComponent != None:
aComponentUserName = aComponent._get_componentusername()
aPrs3d.SetEntity(theEntity)
aPrs3d.SetFieldName(theFieldName)
aPrs3d.SetTimeStampNumber(theTimeStampNumber)
- if not aPrs3d.Apply():
+ if not aPrs3d.Apply(0):
print "It is impossible to create such kind of presentation (%s) with the given parameters" % theVISUType
print "\ttheMeshName = '%s'" % theMeshName
print "\ttheEntity = %s" % theEntity
for anInfo in aRange:
print "%d (%s); " % (anInfo.myNumber, anInfo.myTime)
aPrs3d.SetTimeStampNumber(anInfo.myNumber)
- aPrs3d.Apply()
+ aPrs3d.Apply(0)
aView.Update();
time.sleep(aDelay)
pass