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

yang686526 2009-05-05 11:34 AM

【转帖】getting viewextents - problem
 
getting viewextents - problem
getting viewextents - problem
when i'm trying to get extents from selected layout using viewextents (...) i receive false result for "einfach", "einfach_rst" and "komplett" layouts
and the boundrybox.minpoint() have it's coordinates (x=-1e20, y=-1e20, z=-1e20), boundrybox.maxpoint() (x=1e20, y=1e20, z=1e20) and they are bad.
for "model" and "a3_1_100" extents are ok and the result of viewextents is true.
here is a code below which i'm using for that:
odgsviewptr pview = ((odgslayouthelperptr)m_pdevice)->activeview();
odabstractviewpeptr pviewpe(pview);
odgeboundblock3d boundrybox;
bool isboxvalid = pviewpe->viewextents(pview, boundrybox);
why can't i get extents for this layouts ?
i have enclused my dwg file in attachement. can anyone help to solve this problem ? i'm using the latest dwgdirect..
attached files
hi,
that's ok.
it's because views do not display any geometry itself (only inside model viewport).
autocad and dd assume limmin-limmax of corresponding layout to be its extents.


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