<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=iso-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
<br>
<br>
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
Thanks sounds exactly what I was looking for. However I don't really
know how to use it:<br>
<br>
source=GetActiveSource()<br>
iter=servermanager.vtkPVCompositeDataInformationIteratior()<br>
dir(iter) -> shows no GetCurrentName()<br>
<br>
Thanks Bastian<br>
<br>
<br>
<blockquote cite="mid:4B8D781E.9050005@yahoo.de" type="cite"><br>
-------- Original-Nachricht --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th nowrap="nowrap" valign="baseline" align="right">Betreff: </th>
<td>Re: [Paraview] Name query from multi-block data in Python</td>
</tr>
<tr>
<th nowrap="nowrap" valign="baseline" align="right">Datum: </th>
<td>Tue, 2 Mar 2010 14:24:51 -0500</td>
</tr>
<tr>
<th nowrap="nowrap" valign="baseline" align="right">Von: </th>
<td>Utkarsh Ayachit <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E" href="mailto:utkarsh.ayachit@kitware.com"><utkarsh.ayachit@kitware.com></a></td>
</tr>
<tr>
<th nowrap="nowrap" valign="baseline" align="right">An: </th>
<td><a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:Bastil2001@yahoo.de">Bastil2001@yahoo.de</a> <a
moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:Bastil2001@yahoo.de"><Bastil2001@yahoo.de></a></td>
</tr>
<tr>
<th nowrap="nowrap" valign="baseline" align="right">CC: </th>
<td>ParaView <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E" href="mailto:paraview@paraview.org"><paraview@paraview.org></a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>Yea, I don;t see why not. You can create the iterator as follows:
> from paraview.simple import *
> iter = servermanager.vtkPVCompositeDataInformationIterator()
Utkarsh
On Mon, Mar 1, 2010 at 5:04 PM, <a moz-do-not-send="true"
class="moz-txt-link-abbreviated" href="mailto:Bastil2001@yahoo.de">Bastil2001@yahoo.de</a> <a
moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:Bastil2001@yahoo.de"><Bastil2001@yahoo.de></a> wrote:
> Thanks. Can this be done from within Python?
>
> Regards Bastian
>
> Am 01.03.2010 15:10, schrieb Utkarsh Ayachit:
>> Alternatively you can use the vtkPVCompositeDataInformationIterator to
>> iterate over the blocks as well. It has a method GetCurrentName()
>> which can be used to obtain the name of the current block.
>>
>> Utkarsh
>>
>> On Mon, Mar 1, 2010 at 6:40 AM, Berk Geveci <a
moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:berk.geveci@kitware.com"><berk.geveci@kitware.com></a> wrote:
>>
>>> Yes. If one of the first level children is a multi-block dataset, you can do
>>> something like:
>>>
>>> dataInformation.GetCompositeDataInformation().GetDataInformation(i).GetCompositeDataInformation().GetInformation(j)
>>>
>>> -berk
>>>
>>> On Sat, Feb 27, 2010 at 5:33 AM, <a moz-do-not-send="true"
class="moz-txt-link-abbreviated" href="mailto:Bastil2001@yahoo.de">Bastil2001@yahoo.de</a> <a
moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:Bastil2001@yahoo.de"><Bastil2001@yahoo.de></a>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I use python to extract blocks of a multi-block dataset. In both 3.6.2
>>>> and 3.7-dev I can do:
>>>>
>>>> <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://www.cmake.org/Wiki/Extracting_Multiple_Blocks">http://www.cmake.org/Wiki/Extracting_Multiple_Blocks</a>
>>>>
>>>> However it was discussed it will be easier in 3.8?
>>>> IS there an opportunity to query for names in an multiblock-dataset with
>>>> deepth > 1? The link below works e.g. for Ensight Reader inputs since it
>>>> is of deepth 1 but not for mutliblock data with larger deepth.
>>>>
>>>> Thanks Basti
>>>> _______________________________________________
>>>> Powered by <a moz-do-not-send="true"
class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
>>>>
>>>> Visit other Kitware open-source projects at
>>>> <a moz-do-not-send="true" 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 moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>
>>>>
>>>> Follow this link to subscribe/unsubscribe:
>>>> <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a>
>>>>
>>>
>>> _______________________________________________
>>> Powered by <a moz-do-not-send="true"
class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
>>>
>>> Visit other Kitware open-source projects at
>>> <a moz-do-not-send="true" 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 moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a>
>>>
>>>
>>>
>> _______________________________________________
>> Powered by <a moz-do-not-send="true"
class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
>>
>> Visit other Kitware open-source projects at <a
moz-do-not-send="true" 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
moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>
>>
>> Follow this link to subscribe/unsubscribe:
>> <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a>
>>
>>
>
>
</pre>
</blockquote>
<p><span style="font-family: 'Arial'; font-size: 8pt;">********************************************************************************</span></p>
<p><span style="font-family: 'Arial'; font-size: 8pt;">Diese E-Mail,
einschließlich sämtlicher mit ihr übertragener Dateien, ist vertraulich
und für die ausschließliche Verwendung durch die Person oder das
Unternehmen vorgesehen, an die/das sie adressiert ist. Sollten Sie
diese E-Mail fälschlicherweise erhalten haben, benachrichtigen Sie
bitte den Systemverwalter. Diese E-Mail wurde auf die Anwesenheit von
Computerviren durch F-Secure überprüft.</span></p>
<p><span style="font-family: 'Arial'; font-size: 8pt;"><a class="moz-txt-link-abbreviated" href="http://www.mimesweeper.com">www.mimesweeper.com</a></span></p>
<p><span style="font-family: 'Arial'; font-size: 8pt;">*********************************************************************************</span></p>
<p><span style="font-family: 'Arial'; font-size: 8pt;"> </span></p>
</body>
</html>