几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   SolidWorks二次开发 (http://www.dimcax.com/hust/forumdisplay.php?f=111)
-   -   【转帖】presentation transforms (http://www.dimcax.com/hust/showthread.php?t=5629)

yang686526 2009-04-13 01:31 PM

【转帖】presentation transforms
 
presentation transforms
hi,
i'm having some difficulties using component2.presentationtransform.
the sw api help does not state to which coordinate system this transformation relates to.
is it specified to the root assembly, to the direct parent assembly of a component, or...?
i have done some test and am getting more confused. any help is more then welcome.
thanks,
tony
the coord system is related to the components origin location you are applying to for translation, scaling and rotation.
the units are meters and radians.
also, if you are using a matrix and sldworks.getmathutility to do your transformations then the 16 long array you create for the tranformation matrix has the following items:
arr(1) = pitch (radians)
arr(6) = yaw (radians)
arr(7) = roll (radians)
arr(9) = x (meters)
arr(10) = y (meters)
arr(11) = z (meters)
hi luke,
i have done some additional tests and you're correct.
the transformation is specified in relation to the parent sub-assembly and takes the current position of the component into account.
thanks for the help.
regards,
tony
quick


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