![]() |
【转帖】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. |