查看单个帖子
旧 2009-05-06, 09:20 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】ole object position

ole object position
ole object position
hello,
i use dwgdirect 1.12 in my project and i try to get position of ole object.
i use following code to do it:
if(!pentity.isnull() && pentity->iskindof(oddbole2frame::desc() )
{
oddbole2frameptr pole = pentity;
odrectangle3d rect3d;
odgepoint3d pt3d;
pole->getlocation(pt3d);
pole->position(rect3d);
}
what i get are very big values of rect3d corners and pt3d coordinates.
please advice me, what should i do to get the proper vaules. it's important to me to do it in 1.12 version.
regards,
savip
never mind,
i solve the problem
the bug was on my side - wrong data formatting
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)