def newObjectFromFile(self,objname,filename,filetype): if pylon.object_new_fromfile(self.name,objname,filename,filetype) or not pylon.object_check(self.name,objname): print "Cannot create object:'",objname,"' in sim:'",self.name,"' from file:'",filename,"' of type:'",filetype,"'" return None return Object(objname,self.name)
def hasObject(self,objname): if pylon.object_check(self.name,objname): return True return False
def check(self): if pylon.object_check(self.simname,self.name): return True return False