Pooja_Sahay
New member
<H1 =q>Not able to select Axis for giving "Coincidence" Constraint (CATIA Automation using VBScript)</H1>
I am working on a Macro(CATScript) where I need to create a "Reference" Object for the "Axis" selected by the user in order to add the "Coincidence" constraint.
I am working on CATIAV5 R18.
When I used the "SelectElement2" API to retrieve the Selected Object (Axis of a Circular Pocket), the method returned "Nothing".
I also tried using the "SelectElement3" API, but got the "Plane" instead of the "Axis" (as the Selection filter Type was "AnyObject").
What should the Selection filter be in order to select an Axis?
I am working on a Macro(CATScript) where I need to create a "Reference" Object for the "Axis" selected by the user in order to add the "Coincidence" constraint.
I am working on CATIAV5 R18.
When I used the "SelectElement2" API to retrieve the Selected Object (Axis of a Circular Pocket), the method returned "Nothing".
I also tried using the "SelectElement3" API, but got the "Plane" instead of the "Axis" (as the Selection filter Type was "AnyObject").
What should the Selection filter be in order to select an Axis?