查看单个帖子
旧 2009-05-06, 09:42 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)