|
高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|