Message 1 of 4
Why EventAddIn sample does not work?

Not applicable
06-14-2006
12:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,All,
I compile the VC++ AddIns sample "EventAddIn", and run it under
Inventor11,but I found that the select event does not work.
Whether I select a sketch line,the OK button in "Sketch Pattern" dialog is
alwayse gray.
I add a messagebox in selectEvent , try again, the messagebox does not show.
STDMETHODIMP CSelectEventHandler::onEvent_OnSelect(ObjectsEnumerator *
JustSelectedEntities,
SelectionDeviceEnum SelectionDevice, Point * ModelPosition,
Point2d * ViewPosition, View * View )
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
AfxMessageBox("Have Select!");
return m_pParent->OnSelect (JustSelectedEntities, SelectionDevice,
ModelPosition, ViewPosition, View );
}
Who can help me?
Thanks.
I compile the VC++ AddIns sample "EventAddIn", and run it under
Inventor11,but I found that the select event does not work.
Whether I select a sketch line,the OK button in "Sketch Pattern" dialog is
alwayse gray.
I add a messagebox in selectEvent , try again, the messagebox does not show.
STDMETHODIMP CSelectEventHandler::onEvent_OnSelect(ObjectsEnumerator *
JustSelectedEntities,
SelectionDeviceEnum SelectionDevice, Point * ModelPosition,
Point2d * ViewPosition, View * View )
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
AfxMessageBox("Have Select!");
return m_pParent->OnSelect (JustSelectedEntities, SelectionDevice,
ModelPosition, ViewPosition, View );
}
Who can help me?
Thanks.