CreatePoint bug?

Hi!

I have problem creating a point.

The CreatePoint/CreatePoint returns null, I set my program in debug mode

and repeat the line of code for the creation on point.

I found out that if I selected a segment(ex.arc) on solidworks manually, clear the selection,

then repeat the line of code, the point will be created.

Here is the code that i used:

SketchPoint point_ = swSktMngr.CreatePoint(0.36632707873272352, 0.34602580002278666, 0.0);

I also tried using the ModelDoc2:: CreatePoint2 but the same problem occured.

Is there anyone who encountered this problem?

What could be the cause?

Regards,

J.Torres

SolidworksApi macros