<div dir="ltr"><div><div><div><div><div><div>Hi Dennis,<br><br></div>The block name is in the block metadata, which is not where I looked the first time either.  Here is a code snippet that shows how to access it.<br><br></div><div>mb = vtk.vtkMultiBlockDataSet()<br>...<br></div>for i in range(mb.GetNumberOfBlocks):<br></div>  metadata = mb.GetMetaData(i)<br></div>  name = metadata.Get(<a href="http://vtk.vtkCompositeDataSet.NAME">vtk.vtkCompositeDataSet.NAME</a>())<br><br></div>HTH,<br></div>Shawn<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 28, 2015 at 4:13 PM, Dennis Conklin <span dir="ltr"><<a href="mailto:dennis_conklin@goodyear.com" target="_blank">dennis_conklin@goodyear.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="#0563C1" vlink="#954F72" lang="EN-US">
<div>
<p class="MsoNormal">All,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Once again, I need help.  We are starting to assign names to our Exodus blocks (outside of Paraview).   This is very useful for ease and clarity of post processing and allows convenient reference to actual components.   The good news is
 that Paraview seems perfectly happy to read in the Block Names and use them in the Properties Panel and the Multi-block Inspector and the Find Data screen if they exist (no action or programming required for this).  So, for instance, instead of Paraview generating
 the non-useful name of “Unnamed block ID: 13 Type: hex” when the blockname is empty, it will automagically use the more useful Blockname of “Tread”  if that is in the Exodus file.  
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">However, there has been an unintended consequence of this change.   If I select some elements and examine them in Spreadsheet View, I see Block Number 14( the +1 offset from Block_ID and Block Number is NOT the problem!).   And now I can
 no longer associate the element (Block Number 14) with it’s block in the Properties Panel or the Multi-block Inspector or the Find Data panel – where the same block is called “Tread”.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">So, to remedy this situation I would like to add an element variable of BlockName, which would contain “Tread” for all the elements in BlockID 13, etc., etc. for all the blocks.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">My only problem is I can’t seem to find the list of Block Names.   I’m pretty weak at vtk, so it must be available but I surrender – I can’t seem to find it.   If someone can help me find the list of Block Names from inside the Programmable
 Filter, I’ll be happy to add the element variable myself.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks for any help, again!<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Dennis<u></u><u></u></p>
</font></span></div>
</div>

<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>