Start a new topic
Answered

Output cable element linked to grabbing tool

Hi, 


Is there a way, using Python script, to know which element of the cable a grabbing tool is attached to during simulation? 

I tried to check in the universe constraints but it seems that the grabbing tool is not considered as a constraint. 


Thanks in advance for your answers. 


Best Answer

Hi Ornella,


The Grabbing Tool part will merge with the cable part.


If you want to know which part of the cable is grabbed you can look at the merge root for the grabbed part.


Note that this is available at the VxCore level. You will need to retrieve the VxPart and then call the function to retrieve the merge root (C++:  getMergeRoot() , Python: mergeRoot() ) to have your cable part.


From the C++ API there is lots of function to navigate through the merged parts but with the Python level there is only the mergeRoot() function available


Hope this help.  


Remi

1 Comment

Answer

Hi Ornella,


The Grabbing Tool part will merge with the cable part.


If you want to know which part of the cable is grabbed you can look at the merge root for the grabbed part.


Note that this is available at the VxCore level. You will need to retrieve the VxPart and then call the function to retrieve the merge root (C++:  getMergeRoot() , Python: mergeRoot() ) to have your cable part.


From the C++ API there is lots of function to navigate through the merged parts but with the Python level there is only the mergeRoot() function available


Hope this help.  


Remi

Login to post a comment