查看单个帖子
旧 2009-05-06, 04:28 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】iterator or blocktablerecord entity coun

iterator or blocktablerecord entity count?
iterator or blocktablerecord entity count?
this is a pretty inane question. i'm just looking for a ->count() method for the iterator of a block, or perhaps of the block itself. currently i'm stuck looping twice, once for the counter, the other time for the actual code. i need the count for a progress bar, not for the actual loop.
help isn't of much use, except for the "reference count", but this doesn't tell me much. please help me out!
thanks in advance.

function returning number of entities in block is available only in activex (actualy it iterates the block entities to get their count).
btw for progress meter oddbdatabase::approxnumobjects() function may be usefull.
sergey slezkin

thanks for the info. leave it to sergey! guess i'll just loop twice, since i don't need to know the number of objects in the db, i need particular counts such as attribs, entities, etc. but thanks for the suggestion.
anyway could you possibly tell me a bit more on what exactly this referencecount() is all about.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)