高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】how to get layercoun
how to get layercount?
how to get layercount?
hi all,
i have an object of oddbdatabase. how can i get the layer count in the database?
tia,
regards,
jahfer
hope this helps:
oddbdatabaseptr pdb;
oddblayertableptr playertable = pdb->getlayertableid().safeopenobject();
oddbsymboltableiteratorptr pi = playertable->newiterator();
int ncount = 0;
for (pi->start(); !pi->done(); pi->step(),++ncount) {}
best regards
chudomir
|