几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】oddbregion acisout produces empty file (http://www.dimcax.com/hust/showthread.php?t=17600)

yang686526 2009-05-06 08:09 PM

【转帖】oddbregion acisout produces empty file
 
oddbregion acisout produces empty file
oddbregion acisout produces empty file
i am importing a dwg file containing an oddbregion.
i use these instructions to produce a sat file
odwrfilebuf wf(szfile);
pregion->acisout(&wf, kaf_ascii_20800 );
wf.close();
where pregion is an oddbregionptr,
but the file created is an empty file.
have you an idea or suggestion?
thx
are you able to reproduce the situation in odamfcapp?
1. load dwg
2. select the region in tree control
3. edit/save sat to..
sergey slezkin
quote:
originally posted by sergey slezkin
are you able to reproduce the situation in odamfcapp?
1. load dwg
2. select the region in tree control
3. edit/save sat to..
i tried with odamfcapp and i succeded to save to sat.
is there something wrong in my code?
i tried acisout with oddb3dsolidptr and oddbbodyptr and it works correctly.
thx for the help
the only differenve between 3dsolid, body and region i can imagine is different sat version of their data. it can be examined in odamfcapp by selecting them in tree control.
if sat version of object data differs from requested to be saved dd needs modelergeometry module to perform the conversion. if it's not available the data can be saved only as is.
sergey slezkin


所有的时间均为北京时间。 现在的时间是 08:02 AM.