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

yang686526 2009-05-06 06:42 PM

【转帖】number of entities and layers
 
number of entities and layers
number of entities and layers
hi,
how can i get the number of entities and layers after load a file to database?
i intend to make a read file progress. in opendwg toolkit there was 'adnumentities' and 'adnumlayers'. are there any similar functions in dwgdirect 1.10 update?
regards,
regina.
number of entities in block and number of entries in symbol table can be obtained only using iterator.
but for implementing progress meter oddbdatabase::approxnumobjects() can be usefull. note that it may return a value greater than the actual number of objects in database.
sergey slezkin


所有的时间均为北京时间。 现在的时间是 07:31 PM.