几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】how to get layercoun (http://www.dimcax.com/hust/showthread.php?t=16679)

yang686526 2009-05-06 02:41 PM

【转帖】how to get layercoun
 
how to get layercount?
how to get layercount?
hi all,
i have an object of oddbdatabase. how can i get the layer count in the database?
tia,
regards,
jahfer
hope this helps:
oddbdatabaseptr pdb;
oddblayertableptr playertable = pdb->getlayertableid().safeopenobject();
oddbsymboltableiteratorptr pi = playertable->newiterator();
int ncount = 0;
for (pi->start(); !pi->done(); pi->step(),++ncount) {}
best regards
chudomir


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