![]() |
【转帖】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. |