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

yang686526 2009-05-06 09:20 PM

【转帖】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


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