Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep 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
Sep 27, 2007
69
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
 
Replies continue below

Recommended for you

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