Design Review
Welcome to Autodesk’s Design Review Forums. Share your knowledge, ask questions, and explore popular Design Review topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OnSelectObjectEx help

3 REPLIES 3
Reply
Message 1 of 4
ADringer
548 Views, 3 Replies

OnSelectObjectEx help

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

3 REPLIES 3
Message 2 of 4
herbert.he
in reply to: ADringer

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.



Herbert He
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.
Message 3 of 4
ADringer
in reply to: ADringer

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

 

Message 4 of 4
herbert.he
in reply to: ADringer

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.



Herbert He
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report