Fix constraint for point in sketcher

Hi,

I am using API "SketchAddConstraints("sgFIXED") " to fix a point after creating and selecting that point by "Select4()", but the point is not fixed in the UI. Please tell me what I am doing wrong?

SolidworksApi macros