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

yang686526 2009-05-05 11:21 AM

【转帖】getecs
 
getecs ?
getecs ?
what shoud we use instead of oddbentity::getecs method
thanks in advance for any help.
regards
chudomir
sorry, forgot to say:
getecs was in version 1.091 and not in version 1.10
getecs() was always returning identity matrix. in objectarx it returns identity matrix for all autocad entities too. we removed it from interface to avoid confusions.
to get transformation between wcs and ocs odgematrix3d functions can be used (planetoworld() and worldtoplane).
for some entities elevation should be taken into account.
btw, most accessors return coordinates in wcs.
sergey slezkin
thank you for your reply.
so it evidently depends on the type of entity - for example to retrieve the ocs of oddbarc, i should call odgematrix3d:lanetoworld(oddbarc::normal())?
regards
chudomir
yes. but note that center(), getstartpoint(), getendpoint() return wcs coordinates.
sergey slezkin


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