Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
Hello
We are trying to constraint component using toolkit. How one should decide proper option for ProDatumside? I am not sure where one should use PRO_DATUM_SIDE_RED, PRO_DATUM_SIDE_NONE and PRO_DATUM_SIDE_YELLOW?
Any thought will be of great help.
-Ketan
Ketan,
first of all you need to know how to your component would be oriented in the assembly - the idea is similar to UI initial component placement when a user gives a rough orientation/position to a component before constraining it.
After the initial orientation you'll know the directions of component's datum plane normals and assembly's datum plane normals, calculate dot products for matching normals, positive value for a dot product - PRO_DATUM_SIDE_YELLOW, negative - PRO_DATUM_SIDE_RED assuming an align constraint and other way around for a mate constraint.
HIH.
FV.
Hi
Thank you for responding on this.
We have calculated dot product of vectors for assembly reference normal and component reference normal.
If dot product is coming as negative, constraint type to be set is PRO_ASM_MATE else it is PRO_ASM_ALIGN. With this, we are always setting PRO_DATUM_SIDE_YELLOW irrespective of dot product.
Now, we have a question as below:
Can datum side be applicable only for align or mate? I mean is it safe to go with datum side as PRO_DATUM_SIDE_YELLOW for all constraint type (be it align, mate, offset, tanget, fix etc....)? We are ensuring PRO_ASM_MATE , PRO_ASM_ALIGN , PRO_ASM_MATE_OFF & PRO_ASM_ALIGN_OFF based on dot product.
If yes, we can conclude that datum side is of use only for constraint type as align or mate consideration only.
Thanks and Regards
Ketan
Hello all,
Ketan,
AFAIK, locking PRO_DATUM_SIDE_YELLOW and setting PRO_ASM_ALIGN / PRO_ASM_MATE as needed would work fine.
HIH.
FV.