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

yang686526 2009-05-06 09:42 PM

【转帖】partial loading
 
partial loading
partial loading
the old kit had a filter set for reading in dwg files
char filters[32];
memset(&filters,0,sizeof(filters));
filters[ad_ent_block] = 1; //12
filters[ad_ent_endblk] = 1; //13
filters[ad_ent_insert] = 1; //14
filters[ad_ent_attdef] = 1; //15
filters[ad_ent_attrib] = 1; //16
filters[ad_ent_seqend] = 1; //17
adsetpreloadentityfilter(filters);
adhandle = adloadfile( dwg, ad_preload_partial, true);
this greatly sped up dwg loads.
will the direct kit have any similar mechanism?
or is there any strategy to insure the fastest possible (read only) drawing loads?

> or is there any strategy to insure the fastest possible (read only) drawing loads?
the third parameter [ bool bpartial ] in oddbhostappservices::readfile controls this.

partial loading feature in dwgdirect allows loading only accessed objects. it's transparent for client code. an object is loaded from file at the moment it is being opened for the first time.
partial loading works with dwg r13 and greater. it is not available for dxf.
sergey slezkin

i understand. thanks for the reply.


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