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

yang686526 2009-05-07 12:22 PM

【转帖】raster image status
 
raster image status
raster image status
hi,
i have a case that the raster image got deleted from file (not detached). so there is an unreferenced image left in the image dictionary. i am looking for a method to get the status of the raster image, which is unreferenced in this case. i thought it would be in imagedef object. however i couldn't find it. i only found isloaded() method. i can't use it because it could be 'not found' or 'unreferenced' in the case of isloaded() returning false.
is there a way to find the status in this case?
thanks,
al
i figured it out.
i identify the unreferenced status by looking through the rasterimage entities. if there is an image header but no image entity. that means the header is unreferenced.
al


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