几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】problem with viewporttablerecord (http://www.dimcax.com/hust/showthread.php?t=18185)

yang686526 2009-05-06 11:40 PM

【转帖】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


所有的时间均为北京时间。 现在的时间是 10:47 AM.