I have code that starts AlibreX.AutomationHook, gets the Root, creates an empty part. Then, I can get the XY-Plane and AddSketch(nil,'XY-Plane','NewSketch'); This starts a new part called NewPart with a new sketch called "NewSketch" and the NewSketch is highlighted. The variable in my code for the sketch is FSketch, and the empty part is FPart. I have two statements that give me the error below:
Those statements are:
FSketch.Figures.AddCircle(X,Y,Rad);
and/or
FPart.Sketches.Item['NewSketch'].Figures.AddCircle(X,Y,Rad);
The error is:
Invalid Sketch Session. Change the Current Sketch Session to Sketch Session associated with the Sketch Figure.
Help please!!
Those statements are:
FSketch.Figures.AddCircle(X,Y,Rad);
and/or
FPart.Sketches.Item['NewSketch'].Figures.AddCircle(X,Y,Rad);
The error is:
Invalid Sketch Session. Change the Current Sketch Session to Sketch Session associated with the Sketch Figure.
Help please!!