I want to Change a sketch Support from one plane to another in macro. I tried with StartCommand but that did not work. How can this be done without user Input?
I have tried the following code but it did not work.
CATIA.StartCommand "Change Sketch Support"
selection1.Add sketch3
SendKeys "{ENTER}", True
selection1.Add Plane_a
SendKeys "{ENTER}", True
part1.Update
This link says to select the sketch then select the plane and run StartCommand "Change Sketch Support"
https://v5vb.wordpress.com/2010/01/20/startcommand/
You are trying by winapi and this is not the easiest way. You have two alternatives:
Or you use copy and paste method
Or you define the precise vectors