<div>That's right !</div>
<div> </div>
<div>By the way, can someone clarify what the difference is between :</div>
<div> </div>
<div>from paraview.simple import *</div>
<div>and </div>
<div>from paraview import servermanager</div>
<div> </div>
<div>The two servermanagers do not behave in the same way !</div>
<div>For example the ensight reader in one is :</div>
<div>servermanager.sources.ensight</div>
<div>servermanager.sources.EnsightReader</div>
<div> </div>
<div>JAcques<br><br></div>
<div class="gmail_quote">2009/5/5 Berk Geveci <span dir="ltr"><<a href="mailto:berk.geveci@kitware.com">berk.geveci@kitware.com</a>></span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Jacques,<br><br>We need to develop a higher level interface to access the block<br>information from the client. This is on our plate for the next<br>
release. I am guessing that you want to select blocks by name?<br><font color="#888888"><br>-berk<br></font>
<div>
<div></div>
<div class="h5"><br>On Thu, Apr 30, 2009 at 10:11 AM, Jacques Papper <<a href="mailto:jpapper@ara.co.uk">jpapper@ara.co.uk</a>> wrote:<br>><br>> Hi all,<br>><br>> I would like to be able to obtain the list of blocks available in a dataset<br>
> (by name) through Python.<br>> At the moment, I am using the following :<br>><br>> blockFilter=servermanager.filters.ExtractBlock(Input = ensightReader)<br>> blockFilter.BlockIndices = [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]<br>
> blockFilter.PruneOutput = 1<br>><br>><br>> This works fine but I need to hardcode the indices.<br>> What I would like is to enable the python script to output a list of indices<br>> and names of blocks before .... How can I do this ?<br>
><br>> Thank you !<br>><br>> Jacques PAPPER<br>> Applied CFD Team Leader<br>> Tel: +44 (0) 1234 324677<br>><br>><br>> ---------------------------<br>> 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.<br>
> Note: All email sent to or from this address may be accessed by someone other than the recipient, for system management and security reasons.<br>> Aircraft Research Association Ltd. Registered in England, Registration No 503668 Registered Office: Manton Lane, Bedford MK41 7PF England VAT No GB 196351245<br>
><br>><br>> _______________________________________________<br>> Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>><br>> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>> Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>><br>> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>><br>_______________________________________________<br>Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
<br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br></div></div></blockquote></div><br>