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

yang686526 2009-05-06 06:00 PM

【转帖】modelspace extensions and updatee
 
modelspace extensions and updateext
modelspace extensions and updateext
a question to the extentsions of the modelspace:
to get the extension, i use
code:
oddbdatabaseptr pdb;
...
pdb->getextmin();
pdb->getextmax();
i thought, it is a good idea, to recalculate the extensions with
code:
pdb->updateext();
but after recalculate the extensions, i get 'wrong' values for the extensions.
so, the question: after reading a drawing, can i be sure, that the values for then extensions are always correct?
thanks for your help,
woho
after reading the drawing getextmin(), getextmax() return values which were saved to file. they may be correct or not.
updateext() is intended to calculte the extents and update extmin/extmax values.
could you post an example file demonstating incorrect values after updateext() call?
sergey slezkin
the drawing you supplied contains a lot of oddbtext objects with zero length (empty) strings. autocad does not include them into extents.
oddbdatabase::updateext() includes position of such text entities into extents. this should be fixed in dd.
sergey slezkin


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