I figured out, that the rotations seem to be wrong, if the sub-model uses different Creo-Units than the parent-model.
The model-structure is rather simple:
MAIN.ASM (main model scaled in Meters)
ASM_CS0 (main coordinate frame)
SUBPART.ASM (ID:204, sub-model scaled in Millimeters)
We can see, that the translations ("origin") are correct in all three cases, but the rotations are wrong, If the main-model and the sub-model use different Length-Units!
It looks like the x,y,z_axis are scaled by 1000 - and z_rot is scaled by 1000.
Hm, I will need to investigate. I know that the function as coded does not take into account what the units of the components are -- it assumes that all components in the assembly use the same units.
I figured out, that the rotations seem to be wrong, if the sub-model uses different Creo-Units than the parent-model. The model-structure is rather simple:
I performed the following CreoSon-request:
MAIN.ASM and SUBPART.ASM in MM:
MAIN.ASM and SUBPART.ASM in M:
MAIN.ASM in M, SUBPART.ASM in MM:
We can see, that the translations ("origin") are correct in all three cases, but the rotations are wrong, If the main-model and the sub-model use different Length-Units! It looks like the x,y,z_axis are scaled by 1000 - and z_rot is scaled by 1000.