Jump to content
Developer Wiki and Function Reference Links Read more... ×

Changing font sends multiple events for selected plugin objects

Recommended Posts


we have a plugin object and register it for IObjUpdateSupportContext to receive object states. (context->AcceptState(myUniversalName);)
Selecting this plugin object and then changing the font, font-style or font-size sends three events for this plugin object: ObjectState::kObjectChangedReset then ObjectState::kObjectExternalReset and again ObjectState::kObjectChangedReset. We would expect only one event instead of three.
Is there any reason why this action sends three events or are we doing something wrong?

Share this post

Link to post

Typically they should follow a logically order of events.


kObjectExternalReset is called when an object reset is caused by another object.

I assume the first reset is yours. For some reason, an additional reset by something else in the background is causing the other events. Some actions can cause multiple events because sometimes we want to do something on a specific moment when an object is changing. It could be that modifying text does that.


I wouldn't worry to much about it unless you end up with unwanted behaviour.



Edited by Hippocode

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114


© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.