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

problem with viewporttablerecord
problem with viewporttablerecord
i am reading a dwg file. here i have three viewporttablerecord. if i print the names of the voewporttablerecords then the names of all three records are shown as same.
i am attaching the code
oddbdatabase pdb = ....
oddbviewporttableptr viewporttable
= pdb->getviewporttableid).safeopenobject();
oddbsymboltableiteratorptr piter = viewporttable->newiterator();
for (piter->start(); !piter->done(); piter->step())
{
oddbviewporttablerecordptr precord
= piter->getrecordid().safeopenobject();
std::cout<<precord->getname()<<std::endl;
}
then the output will be like this..
*active
*active
*active
my doubt is, can the name of two viewports be same.
kindly reply the query
with regards
anirban talukdar
the dbviewporttable can contain multiple records with the same name.
when a multiple viewport configuration is saved, all viewports in the configuration share the same name, but each viewport has its own dbviewporttablerecord created to save the data for that viewport.
regards,
sergey vishnevetsky
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)