Message 1 of 1
What is the type of the parameter PreSelectEntity
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?