<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt">Hi Stuart,<br><br>Loading twice works for a very simple case (python code below)<br>Assuming you have python version, dump this to the terminal :-<br>python<br>from itaps import iGeom, iBase<br>g=iGeom.Geom()<br>g.createBrick(1,1,1)<br>g.save("bri1.sat")<br>exit()<br>python<br>from itaps import iGeom, iBase<br>g=iGeom.Geom()<br>g.createBrick(0.5,0.5,2)<br>g.save("bri2.sat")<br>exit()<br>python<br>from itaps import iGeom, iBase<br>g=iGeom.Geom()<br>g.load("bri1.sat")<br>g.load("bri2.sat")<br>g.save("twobricks.sat")<br>exit()<br><br>From this case it appears that if both geometries are CGM created it
works. Problems appear with Cubit10.2 created .sat file; An error
message 'you may be trying to read a file from newer Acis version' pops
up. Not sure why, but, I'm unable to step into
gqt->read_geometry_file (line:434 iGeom_CGMA.cc) which seems to be
the cause of the error.<br>
<br><font style="font-family: arial,helvetica,sans-serif;" size="2">Rajeev</font><br><div><br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Tim Tautges <tautges@mcs.anl.gov><br><b><span style="font-weight: bold;">To:</span></b> Rajeev Jain <jain@mcs.anl.gov><br><b><span style="font-weight: bold;">Cc:</span></b> Developer information for cgma <cgma-dev@lists.mcs.anl.gov>; Stuart Slattery <sslattery@wisc.edu><br><b><span style="font-weight: bold;">Sent:</span></b> Monday, April 12, 2010 12:46:48<br><b><span style="font-weight: bold;">Subject:</span></b> [Fwd: [cgma-dev] PyTAPS Multiple Geometry Load Failure]<br></font><br>Rajeev,<br> Could you take a look at this? Thanks. I know loading into 2 separate instances won't
work, since cgm isn't thread safe. Loading twice should work, though.<br><br>- tim<br><br>-------- Original Message --------<br>Subject: [cgma-dev] PyTAPS Multiple Geometry Load Failure<br>Date: Mon, 12 Apr 2010 12:39:47 -0500<br>From: Stuart Slattery <<a ymailto="mailto:sslattery@wisc.edu" href="mailto:sslattery@wisc.edu">sslattery@wisc.edu</a>><br>To: <a ymailto="mailto:cgma-dev@mcs.anl.gov" href="mailto:cgma-dev@mcs.anl.gov">cgma-dev@mcs.anl.gov</a><br><br>Hi<br><br>I am attempting to load two different ACIS files in order to compare. I<br>have found that a seg fault occurs when trying to load more than one<br>file. I have tried both using multiple iGeom constructors for each file<br>as well as one iGeom constructor and loading both files with that.<br>Attached you will find a sample python script and an ACIS file that<br>demonstrates the error by attempting to load 2 ACIS files (the same file<br>in this case).<br><br>Thanks<br><br>Stuart
Slattery<br><br><br>-- ================================================================<br>"You will keep in perfect peace him whose mind is<br> steadfast, because he trusts in you." Isaiah 26:3<br><br> Tim Tautges Argonne National Laboratory<br> (<a ymailto="mailto:tautges@mcs.anl.gov" href="mailto:tautges@mcs.anl.gov">tautges@mcs.anl.gov</a>) (telecommuting from UW-Madison)<br> phone: (608) 263-8485 1500 Engineering Dr.<br> fax: (608) 263-4499 Madison, WI 53706<br><br></div></div>
</div><br></body></html>