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