Picking Point Offset C# Rhino Inside App

just started a while ago with Rihno Inside , cannot figure out why the clicking point has offset from the actual point .
Some transformation is not correct ? i am a bit puzzeld why …, no wonder it doesnt return any element when ckicked
Using the Rhino Inside Demo with some points and line
any hint would be greatly appriciated

        private void OnViewportMouseDown(object sender, MouseEventArgs e)
        {     ObjRef point;
             Rhino.Input.RhinoGet.GetOneObject("Point", false, ObjectType.Point, out point);
            //or  Rhino.Input.RhinoGet.GetPoint("Point", false, out point);


after 1000 times trying to accomplish this , it was relative easy to have a custom Rhino window with all functionality

you take the FloatingPort and with P/Invoke Window Handles you can move this and make it work

RhinoApp.RunScript("_-NewFloatingViewPort Projection=CopyActive Perspective", false);

you move this to your custom Control ( in this case it is XtraUserControl from DevExpress)
and voila you have all Rhino to your fingertips … :upside_down_face:

1 Like