I&#39;ll look into it. Currently I found the single lump body attribute seems lost, other ids are all kept. I&#39;ll look into details. Thanks.<br><br>Jane<br><br><div class="gmail_quote">On Tue, Jul 12, 2011 at 12:23 PM, Hong-Jun Kim <span dir="ltr">&lt;<a href="mailto:hongjun@mcs.anl.gov">hongjun@mcs.anl.gov</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">This seems not checked if attributes are really restored after importing geometry again.<br>

I think entity ids have to be checked restored correctly.<br>
<font color="#888888"><br>
Hong-Jun<br>
</font><div><div></div><div class="h5"><br>
<br>
----- Original Message -----<br>
From: &quot;jiangtao ma&quot; &lt;<a href="mailto:jiangtao_ma@yahoo.com">jiangtao_ma@yahoo.com</a>&gt;<br>
To: <a href="mailto:cgma-dev@mcs.anl.gov">cgma-dev@mcs.anl.gov</a><br>
Sent: Tuesday, July 12, 2011 11:55:15 AM<br>
Subject: [cgma-dev] r5052 - cgm/trunk/test<br>
<br>
Author: janehu<br>
Date: 2011-07-12 11:55:15 -0500 (Tue, 12 Jul 2011)<br>
New Revision: 5052<br>
<br>
Modified:<br>
   cgm/trunk/test/attribute_to_buffer.cpp<br>
   cgm/trunk/test/attribute_to_file.cpp<br>
   cgm/trunk/test/makept.cpp<br>
   cgm/trunk/test/modify.cpp<br>
Log:<br>
Remove parallel test from attribute export tests; minor updates for modify and makept.<br>
<br>
Modified: cgm/trunk/test/attribute_to_buffer.cpp<br>
===================================================================<br>
--- cgm/trunk/test/attribute_to_buffer.cpp      2011-07-11 20:23:21 UTC (rev 5051)<br>
+++ cgm/trunk/test/attribute_to_buffer.cpp      2011-07-12 16:55:15 UTC (rev 5052)<br>
@@ -4,10 +4,10 @@<br>
 #include &quot;Body.hpp&quot;<br>
 #include &quot;CGMApp.hpp&quot;<br>
 #include &quot;CubitAttribManager.hpp&quot;<br>
-#include &quot;CADefines.hpp&quot;<br>
-#include &quot;TDParallel.hpp&quot;<br>
-#include &quot;CABodies.hpp&quot;<br>
+#include &quot;CAEntityId.hpp&quot;<br>
<br>
+#include &lt;iostream&gt;<br>
+#include &lt;string&gt;<br>
 #include &lt;stdio.h&gt;<br>
 #include &lt;stdlib.h&gt;<br>
<br>
@@ -37,8 +37,8 @@<br>
   ASSERT(s);<br>
<br>
   // actuate CA_BODIES attribute and turn on auto flag<br>
-  CGMApp::instance()-&gt;attrib_manager()-&gt;register_attrib_type(CA_BODIES, &quot;bodies&quot;, &quot;BODIES&quot;,<br>
-                                                            CABodies_creator, CUBIT_TRUE,<br>
+  CGMApp::instance()-&gt;attrib_manager()-&gt;register_attrib_type(CA_ENTITY_ID, &quot;id&quot;, &quot;ENTITY_ID&quot;,<br>
+                                                            CAEntityId_creator, CUBIT_TRUE,<br>
                                                             CUBIT_TRUE, CUBIT_TRUE, CUBIT_TRUE,<br>
                                                             CUBIT_TRUE, CUBIT_FALSE);<br>
   CGMApp::instance()-&gt;attrib_manager()-&gt;auto_flag(CUBIT_TRUE);<br>
@@ -53,24 +53,6 @@<br>
     s = GeometryQueryTool::instance()-&gt;translate( bricks[i], CubitVector(i,0,0) );<br>
     ASSERT(s);<br>
     export_list.append( bricks[i] );<br>
-<br>
-    // add tool data to bodies<br>
-    RefEntity* entity = dynamic_cast&lt;RefEntity*&gt; (bricks[i]);<br>
-    DLIList&lt;int&gt; shared_procs;<br>
-    shared_procs.append(i);<br>
-    TDParallel *td_par = (TDParallel *) entity-&gt;get_TD(&amp;TDParallel::is_parallel);<br>
-    if (td_par == NULL) td_par = new TDParallel(entity, NULL, &amp;shared_procs);<br>
-<br>
-    // add tool data to volumes too<br>
-    DLIList&lt;RefVolume*&gt; volumes;<br>
-    (dynamic_cast&lt;TopologyEntity*&gt; (entity))-&gt;ref_volumes(volumes);<br>
-    int n_vol = volumes.size();<br>
-    volumes.reset();<br>
-    for (int j = 0; j &lt; n_vol; j++) {<br>
-      RefEntity *vol = volumes.get_and_step();<br>
-      td_par = (TDParallel *) vol-&gt;get_TD(&amp;TDParallel::is_parallel);<br>
-      if (td_par == NULL) td_par = new TDParallel(vol, NULL, &amp;shared_procs);<br>
-    }<br>
</div></div></blockquote></div><br>