查看单个帖子
旧 2009-05-05, 11:34 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)