.NET

.NET

Reply
Mentor
SRSDS
Posts: 247
Registered: ‎04-15-2011
Message 11 of 13 (107 Views)

Re: If selected entity xdata contains value Then select additional entity

05-24-2013 11:02 PM in reply to: DiningPhilosopher

It seems to unfortunately. e.Selection is contains no objects.

It's a rare case that I need to use it. I'll prompt the user that the other entity needs to be modified and not the one selected.

 

 

 

 

Valued Mentor
DiningPhilosopher
Posts: 370
Registered: ‎05-06-2012
Message 12 of 13 (100 Views)

Re: If selected entity xdata contains value Then select additional entity

05-25-2013 02:59 PM in reply to: SRSDS

The selected objects are in the AddedObjects property, not the SelectionSet property.

 

Read the documentation, and search here for examples of its use.

Mentor
SRSDS
Posts: 247
Registered: ‎04-15-2011
Message 13 of 13 (92 Views)

Re: If selected entity xdata contains value Then select additional entity

05-25-2013 04:41 PM in reply to: DiningPhilosopher

I 've ended up using the EnteringQuiescentState event to do this.

I couldn't understand the errors the SelectionAdded event was generating or why it was firing so many times.

Thanks again and sorry for any trouble there.

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.