Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

NXOpen - Reposition component till collision

Status
Not open for further replies.

basenxuser

Mechanical
Joined
Sep 27, 2007
Messages
69
Location
IN
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
 
That "Stop Before Collision" does not get recorded into a journal...
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top