I am guessing that this is because the EnSight writer is now a bit out of date. Does this work from the GUI at all?
-berk On Mon, Jan 4, 2010 at 10:34 AM, NURI Adrien <[email protected]> wrote: > > > Hi all, > > I’m working with paraview in script python, and I would like to use the > EnSightWriter. > > But when I’m running, the program crash and it appear the error message > “error pvbatch.exe” > > I don’t understand why the program didn’t run. > > > > Thanks for your answer. > > Adrien > > > > > > > > #-----Paraview V3.6.1---------------- > > #------------------------------------- > > from paraview.simple import * > > servermanager.Connect() > > > > #origine du fichier (exemple d'un fichier source de type ensightcase) > > chemin='ensight_3D\/ensightb.case' > > donnees=servermanager.sources.EnSightReader(CaseFileName=chemin) > > > > ######################################################################### > > #Fonction ExtractBlock: > > #---------------------- > > name_extract=servermanager.filters.ExtractBlock(Input=donnees) > > listeblock=[3,4] > > name_extract.BlockIndices=(listeblock) > > name_extract.PruneOutput=(1) > > ######################################################################### > > #Fonction ExtractSurface: > > #------------------------ > > name_ExtractSurf=servermanager.filters.ExtractSurface(Input=name_extract) > > name_ExtractSurf.PieceInvariant=(1) > > ######################################################################### > > #fonction: Writers > > #----------------- > > fichier2=EnSightWriter(Input=name_ExtractSurf, FileName="writer_ensight") > > fichier2.UpdatePipeline() > > > > > > > > > > ________________________________ > Le contenu de ce message est prévu uniquement pour le destinataire nommé. Il > contient des informations qui peuvent être confidentielles. A moins d'être > le destinataire nommé ou autorisé par le destinataire, vous ne pouvez pas > copier, employer ou révéler à une autre personne le contenu de ce message. > Si vous le recevez par erreur, s'il vous plait, informez nous immédiatement > et détruisez le. > > The contents of this e-mail are intended for the named addressee only. It > contains information that may be confidential. Unless you are the named > addressee or an authorized designee, you may not copy or use it, or disclose > it to anyone else. If you received it in error please notify us immediately > and then destroy it. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Follow this link to subscribe/unsubscribe: > http://www.paraview.org/mailman/listinfo/paraview > > _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
