Notifications about model structure changes

Technical discussions
Post Reply
nickz
Site Admin
Posts: 236
Joined: Fri Jul 26, 2013 3:58 am

Notifications about model structure changes

Post by nickz »

Hi all
In today's 4.4.3869 update we have added new event type EDIEvent.eEventModelStructureChanged http://www.dynoinsight.com/Help/DITypes.aspx#EDIEvent . It is raised when an object is added/deleted or object hierarchy changed in some way

The event is not raised by default. Use KC.RequestEvent((int)EDIEvent.eEventModelStructureChanged, true); to request it. See MiniCAD C++ or VB .Net saples for an example

This useful in case when a user has deleted an object, but the application keeps a reference to it. This allows updating the reference. There are no parameters passed with the event, so application has to check its assumptions using for example IModel2.FindSection(). If an object has been deleted in Model Explorer but there is a reference kept by the application the object is still alive and the reference can be used until set to null (nothing etc)

Nick

Post Reply