|
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 |
|