Jump to content

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


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.

  • Create New...