Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8540

ModifyObjectAttributes not triggering?

$
0
0

@davestasiuk wrote:

I am sure I am missing something very basic, but for some reason I am not seeing the ModifyObjectAttributes event firing when I make changes to objects. I am registering my event handler at the same time as several others (all of which are working), but this one for whatever reason doesn't get triggered...I am trying to get it to work when I change user strings, but I can't even get it to fire when I change standard attributes, like layer, etc. I am registering it thus:

RhinoDoc.ModifyObjectAttributes += OnModifyObjectAttributes;

Handling it thus:
void OnModifyObjectAttributes(object sender, RhinoModifyObjectAttributesEventArgs e)
{
// do anything
}

And unregistering thus:
RhinoDoc.ModifyObjectAttributes -= OnModifyObjectAttributes;

Any tips as to what I am doing wrong?

thanks in advance

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 8540

Trending Articles