nevj
Mechanical
- Mar 26, 2015
- 9
Hello,
I am trying to find the point of contact between parts using VBA. I am using the interference module of CATIA and I can find the closest points in the case of a clash or clearance but it doesn't give the point of contact in that case. GetFirstPointCoordinates and GetSecondPointCoordinates return nothing in the case of a contact and it can't be found in the XML file exports either.
However using the Measure tool between two objects, even in the case of planar contact, gives a point of contact. So I have been trying to use the SPAWorkbench with GetMinimumDistancePoints to find the point that way. The problem is that I need to reference the products or parts themselves and not specific surfaces or vertices, just as it is possible to do using the Measure tool in CATIA. Does anyone know how to do this or has anyone successfully attacked this problem some other way??
Thanks in advance for your help.
I am trying to find the point of contact between parts using VBA. I am using the interference module of CATIA and I can find the closest points in the case of a clash or clearance but it doesn't give the point of contact in that case. GetFirstPointCoordinates and GetSecondPointCoordinates return nothing in the case of a contact and it can't be found in the XML file exports either.
However using the Measure tool between two objects, even in the case of planar contact, gives a point of contact. So I have been trying to use the SPAWorkbench with GetMinimumDistancePoints to find the point that way. The problem is that I need to reference the products or parts themselves and not specific surfaces or vertices, just as it is possible to do using the Measure tool in CATIA. Does anyone know how to do this or has anyone successfully attacked this problem some other way??
Thanks in advance for your help.