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

yang686526 2009-05-07 06:01 PM

【转帖】used Layers
 
used layers
used layers
is there an easy method to figure out if there are any entities on a given layer that are visible in the current view? i realize i could vectorize the file and get the list of used layers that way, but i was hoping there was a better method. i think i remember seeing the right kind of call, but i can't find it now.
thanks.
for current view - no.
oddblayertablerecord has isinuse() method but it returns true if the layer is referenced by any entity.
sergey slezkin
oh well, thanks. i guess it is back to "brute force".


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