![]() |
【转帖】dwg without layout extension information
dwg without layout extension information
dwg without layout extension information hi, trying to getting the bounding box in wcs of a dwg i found some files without information about layout extension. i tried getting layout extension information using two methods: 1) min = playout->getlimmin(); max = playout->getlimmax(); 2) playout->getgeomextents( layext ); and often i get min & max = (0.0, 0.0) and the same for layext. dwg files can not contain this information? is there a way to force dwgdirect to calculate them? myzhar ============== ing. walter lucetti geomind srl pisa - italy ============== myzhar # 14th february 2006, 06:11 am moderator join date: mar 2002 posts: 2,994 extents information saved in file may be incorrect. to force extents calculation you can use: use getgeomextents() of layout block. sergey slezkin sslezkin # 14th february 2006, 06:31 am registered user join date: feb 2006 location: pisa posts: 69 quote: originally posted by sergey slezkin use getgeomextents() of layout block. this function returns extensions in model coordinates, is it right? then to have them in wcs do i need to use view matrix? myzhar ============== ing. walter lucetti geomind srl pisa - italy ============== myzhar # 14th february 2006, 06:51 am moderator join date: mar 2002 posts: 2,994 getgeomextents() for layout block returns extents in world coordinate system (wcs). sergey slezkin sslezkin none ? | ? thread tools display modes linear mode search this thread rate this thread excellent good average bad terrible posting rules you may post new threads you may post replies you may post attachments you may edit your posts is on are on code is off html code is off forum jump user control panel private messages subscriptions who's online search forums forums home general topics news questions and remarks business issues industry commentary general software issues documentation issues future directions dwg libraries dwgdirect.net dwgdirect, c++ version dwgdirectx, activex version adtdirect/c3ddirect opendwg toolkit/viewkit dgn libraries dgndirect, c++ version (2.x+) dgndirect libraries (legacy 0.99xx) all times are gmt -7. the time now is 11:33 pmfff">. - - - copyright ?2000 - 2009, jelsoft enterprises ltd. copyright 1998-2008 open design alliance inc. extents information saved in file may be incorrect. to force extents calculation you can use: use getgeomextents() of layout block. sergey slezkin quote: originally posted by sergey slezkin use getgeomextents() of layout block. this function returns extensions in model coordinates, is it right? then to have them in wcs do i need to use view matrix? myzhar ============== ing. walter lucetti geomind srl pisa - italy ============== getgeomextents() for layout block returns extents in world coordinate system (wcs). sergey slezkin |
所有的时间均为北京时间。 现在的时间是 12:04 AM. |