高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|