Prod.: Engine, ver.: 6021, ID: 60001569, Bug : getUserEntity is not working as expected with Snap on

Bug : getUserEntity is not working as expected with Snap on

Article60001569
TypeBug
ProductEngine
Version6021
Date Added12/8/2011
FixedYes [1/10/2012]
Submitted byJens Scheffler
Keywords

Subject

getUserEntity is not working as expected with Snap on

Summary

getUserEntity is not working as expected with Snap on.

Solution

for example:
    private void button4_Click(object sender, EventArgs e)
    {
        //VectorDraw.Geometry.Globals.mEnableFullCircleArc = true;
        vdDocument DOC = vdFramedControl1.BaseControl.ActiveDocument;
        DOC.New();
        vdLine lin = new vdLine(DOC, new gPoint(0, 0), new gPoint(5, 0));

        DOC.Model.Entities.AddItem(lin);
        lin.Invalidate();
        DOC.SnapMode = true;

        vdFigure figure = null;
        gPoint point = null;

        DOC.Prompt("Select Entity 1");
        while (figure == null)
        {
            DOC.ActionUtility.getUserEntity(out figure, out point);
            if (figure != null) MessageBox.Show("Now Entity 1 selected");
        }

        DOC.Prompt(null);
    }
Fixed in 6022