.NET

.NET

Reply
Mentor
SRSDS
Posts: 256
Registered: ‎04-15-2011
Message 11 of 13 (109 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 (102 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: 256
Registered: ‎04-15-2011
Message 13 of 13 (94 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.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.