What is the type of the parameter PreSelectEntity

What is the type of the parameter PreSelectEntity

18627796338
Enthusiast Enthusiast
260 Views
0 Replies
Message 1 of 1

What is the type of the parameter PreSelectEntity

18627796338
Enthusiast
Enthusiast

When I use the SelectEvents to get entity, I get nothing.

private Inventor.Application oApplication;
        private InteractionEvents oInteractionEvents;
        private InteractionGraphics oIntGraphics;
        private SelectEvents oSelectEvents;

public void Pick(Application application)
        {
            oApplication = application;
            oInteractionEvents = application.CommandManager.CreateInteractionEvents();
            oInteractionEvents.InteractionDisabled = false;
            oSelectEvents = oInteractionEvents.SelectEvents;
            oSelectEvents.AddSelectionFilter(SelectionFilterEnum.kDrawingCurveSegmentFilter);
            oSelectEvents.OnPreSelectMouseMove += new SelectEventsSink_OnPreSelectMouseMoveEventHandler(this.oSelectEvents_OnPreSelectMouseMove);
            oInteractionEvents.OnTerminate += new Inventor.InteractionEventsSink_OnTerminateEventHandler(this.oInteractionEvents_OnTerminate);

            oInteractionEvents.Start();
        }

 private void oSelectEvents_OnPreSelectMouseMove(object PreSelectEntity, Point ModelPosition, Point2d ViewPosition, View View)
        {
            Inventor.DrawingCurveSegment dcs = PreSelectEntity as DrawingCurveSegment;
        }

Why the param dcs in oSelectEvents_OnPreSelectMouseMove is null?

0 Likes
261 Views
0 Replies
Replies (0)