contact solve API

contact solve API

NemKumar
Enthusiast Enthusiast
505 Views
3 Replies
Message 1 of 4

contact solve API

NemKumar
Enthusiast
Enthusiast

Hi,

 

Is there any API for contact analysis feature like when two parts are in contact set, then if they collide, is there any event that gets raised.?

 

Thanks & Regards,

0 Likes
Accepted solutions (2)
506 Views
3 Replies
Replies (3)
Message 2 of 4

Vladimir.Ananyev
Alumni
Alumni
Accepted solution

 

Could interference analysis help you?

http://forums.autodesk.com/t5/inventor-customization/contact-sets/m-p/2551162/highlight/true#M29720

Every InterferenceResult object could give you transient body representing the interference volume and both interfering components.

Inventor API contains “Interference Analysis API Sample” that demonstrates the functions used to calculate interference analysis in an assembly.

Cheers,


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 4

ekinsb
Alumni
Alumni
Accepted solution

There isn't anything in the API for the contact solver except for access to the setting that's the equivalent to the UI document setting.  What Vladimir suggested is the only possible workaround that I can think of.  If you don't need real-time kind of interaction but if it can be more of a longer analysis it could probably work but it would take some time to implement.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes
Message 4 of 4

NemKumar
Enthusiast
Enthusiast

Thanks guys,

 

I am using interferenceAnalysis and it works fine to some extent. What I want is when two parts come in contact, they should not move through each other. This behaviour is given well in contact solver. In case of InterferenceAnalysis, it just tells whether there is any collision or not. If I move one part through another part, it lets me to do that.

0 Likes