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

yang686526 2009-05-04 07:22 PM

【转帖】determine world space limits of a dwg
 
determine world space limits of a dwg
determine world space limits of a dwg
hi,
making slow progress in integrating directdwg into
my own applications i come across the problem
of determining the extents of the contents of
a dwg in world space (wcs). how can this
be achieved?
regards,
jeroen posch.
got it...
i found out how to enumeratie through all entities
in the dwg, that gives me the extents.
if you know of a faster way to do this please
advise...
regards,
jeroen.
oddbblocktablerecord::getgeomextents() called for layout block will return extents without taking invisible/frozen layers into consideration.
if you need extents of visible entities only you can use odabstractviewpe::viewextents() method. it can be used for all view-related classes: viewport entities, viewtablerecord, viewporttablerecord.
sergey slezkin
thanks!!
thanks sergey, that works a lost faster!


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