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