<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Thanks Utkarsh, Berk:<br>
<br>
I found a similar posting:<br>
<br>
<a class="moz-txt-link-freetext" href="http://www.mail-archive.com/paraview@paraview.org/msg02936.html">http://www.mail-archive.com/paraview@paraview.org/msg02936.html</a>. Is
there o bug for it so far?<br>
<br>
My current workaround is to extract BLocks (from EnsightReader) and
numbering them using Python functinality:<br>
<pre>dict ={}
source = GetActiveSource()
if not source:
raise RuntimeError, "This macro needs an active pipeline object"
source.UpdatePipeline()
cdi = source.GetDataInformation().GetCompositeDataInformation()
blocks = cdi.GetNumberOfChildren()
for i in range(blocks):
dict.update(cdi.GetDataInformation(i) : i+1)
</pre>
Afterwards dictionary dict contains name of the block and its according
index. However it only works if:<br>
<ul>
<li>Blocks are numbered starting from one without spaces</li>
</ul>
This was the case for all my tests so far. Is this always right?<br>
<br>
Regards.<br>
<br>
<br>
Am 19.01.2010 16:37, schrieb Utkarsh Ayachit:
<blockquote
cite="mid:7ba9d6a31001190737g4d8a0169x712b35ad78feb6f5@mail.gmail.com"
type="cite">
<pre wrap="">Currently there no easy way of extract blocks given there names.
Please feel free to add a feature request to the bug tracker.
<a class="moz-txt-link-freetext" href="http://paraview.org/Bug/">http://paraview.org/Bug/</a>
Utkarsh
On Fri, Jan 15, 2010 at 5:29 PM, BastiL2001 <a class="moz-txt-link-rfc2396E" href="mailto:bastil2001@yahoo.de"><bastil2001@yahoo.de></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Dear all,
I want to extract certain zones (using name filtering) from an Ensight MultiBlock Reader.
Currently I have the names of the zones to extract in a Python list. I do not know how to proceed. I guess I need to get the IDs of these zones? How to do that? How to extract the zones?
I am working with Paraview 3.6.2 and the Trace did not help me much for this. Where do I get some more documentation than in the wiki? Thanks.
Regards BastiL
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the ParaView Wiki at: <a class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<br>
</body>
</html>