Hi
I'm trying to find out the object ID of a markup when the user clicks it. If I use OnSelectObject I can get the ID of the object as long as it is not an markup. The event doesn't fire if the object is a markup.
If I use OnSelectObjectEx the event fires when the user clicks on a markup, but the only parameter passed is the Handled parameter. How am I suppose to get the ID of the object clicked if there is no object parameter?
Thanks
Alex
Thank you for your question.
The OnSelectObjectEx event works with 2D and 3D objects and markups, while the OnSelectObject event works only with 2D objects. However, the OnSelectObjectEx event cannot fetch object/markup expression.
Please let me know if I can be of any further assistance.
So what use does OnSelectObjectEx have if you cannot find out any information about the object selected?
Is there no way to find out which markup was selected then?
Alex
Thank you for your questions.
The default action of select tool can be modified by setting the input parameter pHandled to true, so that the object doesn't get selected.
Using the property Content.Objects you can access all selected markups by pass parameter ObjectType as 3.
enum ObjectType
{
AllPublishedObjects = 0,
SelectedPublishedObjects = 1,
AllMarkupObjects = 2,
SelectedMarkupObjects = 3
};
Please let me know if I can be of any further assistance.