高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】how to query for dynamic block id
how to query for dynamic block id?
how to query for dynamic block ref?
how to query for dynamic block ref from the database?
if i have a dynamic block name e.g. "beam", is it possible to query
for the oddbdynblockreference?
i can check the block table for dynamic blocks using:
oddbblocktableptr ptable = m_pdb->getblocktableid().safeopenobject();
oddbsymboltableiteratorptr pblkiter = ptable->newiterator();
for (pblkiter->start(); ! pblkiter->done(); pblkiter->step())
{
oddbobjectid dynid = pblkiter->getrecordid();
bool isdynamic = oddbdynblockreference::isdynamicblock(dynid);
if(isdynamic)
{
}
}
last edited by marc; 1st february 2006 at 10:58 amfff">.
|