private int OnMouseSelectNotify(int ix, int iy, double X, double Y, double Z)
{
ModelDoc2 activeDoc = _swApp.IActiveDoc2;
SketchManager skMgr = activeDoc.SketchManager;
// Create circle using the original coordinates
skMgr.InsertSketch(true);
skMgr.CreateCircleByRadius(X, Y, 0, 0.04);
skMgr.InsertSketch(true);
return 0;
}
I have this block of code i am trying to get mouse position from, it is correctly creating circles in the drawing, but its as if it is scaled down and moved around a bit, so if i click on the 4 corners of the drawing, it actually creates a rectangle about a fifth of the expected size and pushed to the right in my drawing.
In another drawing its like its even more different, being pushed to the left and scaled even smaller
It is however perfectly rectangular so its just a scaling/translation issue
I really just want the circles to be placed perfectly under the mouse. Am I missing something silly?
