![]() |
【转帖】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. |