几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】unload Of Imagedef (http://www.dimcax.com/hust/showthread.php?t=18899)

yang686526 2009-05-07 05:46 PM

【转帖】unload Of Imagedef
 
unload of imagedef
unload of imagedef
i tried the following code fragment to unload image from imagedef object.
{
oddbrasterimagedefptr pimagedef = id.safeopenobject(oddb::kforwrite);
pimagedef->unload();
bool bisloaded = pimagedef->isloaded();
}
after its execution i can see that bisloaded == false. but for some reason in saved database dxf group 280 (load/unload flag) of imagedef equals to 1 (loaded).
i also tried to use
pimagedef->setimage(null);
instead of
pimagedef->unload();
but result is the same.
what am i doing wrong?
strange... dxf output uses the same function - isloaded():
code:
void oddbrasterimagedef::dxfoutfields(oddbdxffiler* pfiler) const
{
.....
pfiler->wrint8(280, odint8(isloaded() ? 1 : 0));
...
}
sergey slezkin


所有的时间均为北京时间。 现在的时间是 09:11 PM.