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

yang686526 2009-05-06 03:46 PM

【转帖】include new entities in preview bitmap
 
include new entities in preview bitmap
include new entities in preview bitmap
hi all:
i have created some new entities, but they don't appear in the odthumbnailimage. is there something i can do to include them in the preview bitmap??
thanks in advance.
mina.
by default drawing is loaded without preview. if you save it to file having requested preview, dd will create up-to-date preview..
if for some reason you need to load the drawing with preview you can clear the old one by oddbdatabase::setthumbnailbitmap() and the new one will be generated.
sergey slezkin
by new entities i mean new custom entities (like oddbline, i have my oddbmyline for example). the preview contains all the dwg entities ,but not my new entities.
what class do you use for deriving your entities? if oddbentity you have to implement their worlddraw().
sergey slezkin


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