<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi David,<br>
<br>
It doesn't look like you are not using all the right attribute
management here.<br>
<br>
I'm not sure where this is documented (Tim?) but there is a
reasonable example in the ReadCGM module of MOAB. <a
href="https://bitbucket.org/fathomteam/moab/src/1e89e1024c147fd9a617a4a34a698b44c40796d1/src/io/ReadCGM.cpp?at=master#cl-178">Starting
at line 178</a>, you will see that if the flag 'act_att' is set to
true (it is initialized to true at line 136), then the
attribute_manager is set to automatically read and apply the
attributes upon reading a file. <br>
<br>
This is all in <a
href="http://trac.mcs.anl.gov/projects/ITAPS/browser/cgm/trunk/geom/CubitAttribManager.hpp">CubitAttribManager.hpp</a>
which also contains methods for auto_write_flag() that you might
need to establish before you write your file to ensure that they are
written in your file.<br>
<br>
I hope this helps,<br>
<br>
Paul<br>
<br>
<div class="moz-cite-prefix">On 01/24/2014 05:12 PM, David Thompson
wrote:<br>
</div>
<blockquote
cite="mid:DF37CA56-2D37-47C6-87A7-41CC0D773A08@kitware.com"
type="cite">
<pre wrap="">Hi Tim,
</pre>
<blockquote type="cite">
<pre wrap="">Exporting groups is sort of backwards; if you export the model entities that groups are part of, and attributes are on, then they'll go with, and (again, if attributes are on) will be restored on import. Attribute settings are controlled by CubitAttrib, IIRC.
</pre>
</blockquote>
<pre wrap="">
While I have been able to save attributes (UUIDs) on many entities back to a solid model, I am not seeing groups saved, whether they contain entities being written or not. I've attached a test program that demonstrates a group not being saved. Can you see something I am doing wrong?
David
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ --
Paul Wilson ~ UW-Madison ~ 608-263-0807 ~ cal: <a class="moz-txt-link-freetext" href="http://bit.ly/pphw-cal">http://bit.ly/pphw-cal</a>
Professor, Engineering Physics. ~ <a class="moz-txt-link-freetext" href="http://cnerg.engr.wisc.edu">http://cnerg.engr.wisc.edu</a>
Faculty Director, Advanced Computing Infrastructure</pre>
</body>
</html>