NXOpen - Reposition component till collision
NXOpen - Reposition component till collision
(OP)
Hi All,
I am writing a NXOpen application to reposition a component until it makes touch interference with another component.
In interactive NX there is an option called "Stop Before Collision" under "Collision Detection" in reposition component dialog.
Kindly suggest me a way to ahieve this in NXOpen.
Regards,
basenxuser
I am writing a NXOpen application to reposition a component until it makes touch interference with another component.
In interactive NX there is an option called "Stop Before Collision" under "Collision Detection" in reposition component dialog.
Kindly suggest me a way to ahieve this in NXOpen.
Regards,
basenxuser





RE: NXOpen - Reposition component till collision
This approach should simulate the same:
1. Set the direction into which you want to move your component
2. Get the 1st component encountered on the way from your origin into your direction
3. Get the minimum distance between your component and the one found
4. Move your component into your direction by the minimum distance