高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|