Hi Jacques,

We need to develop a higher level interface to access the block
information from the client. This is on our plate for the next
release. I am guessing that you want to select blocks by name?

-berk

On Thu, Apr 30, 2009 at 10:11 AM, Jacques Papper <[email protected]> wrote:
>
> Hi all,
>
> I would like to be able to obtain the list of blocks available in a dataset
> (by name) through Python.
> At the moment, I am using the following :
>
> blockFilter=servermanager.filters.ExtractBlock(Input = ensightReader)
> blockFilter.BlockIndices = [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
> blockFilter.PruneOutput = 1
>
>
> This works fine but I need to hardcode the indices.
> What I would like is to enable the python script to output a list of indices
> and names of blocks before .... How can I do this ?
>
> Thank you !
>
> Jacques PAPPER
> Applied CFD Team Leader
> Tel: +44 (0) 1234 324677
>
>
> ---------------------------
> This email contains information that is private and confidential and is 
> intended only for the addressee.  If you are not the intended recipient 
> please delete it and notify us immediately by e-mailing the sender.
> Note: All email sent to or from this address may be accessed by someone other 
> than the recipient, for system management and security reasons.
> Aircraft Research Association Ltd.  Registered in England, Registration No 
> 503668 Registered Office: Manton Lane, Bedford MK41 7PF England VAT No GB 
> 196351245
>
>
> _______________________________________________
> 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

Reply via email to