ModelWatcher Class

The ModelWatcher object enables an automation client to track changes in a particular model.

ModelWatcher Attributes:

Attribute

Type

Notes

ObjectType

ObjectType

Read only

Distinguishes objects referenced through a Dispatch interface.

 

ModelWatcher Methods:

Methods

Type

Notes

GetReloadItem (object Item)

ReloadType

The object that must be reloaded in order to see all changes is returned through the Item parameter. If there are no changes or the entire model must be reloaded, this value is returned as null (C#) or Nothing (VB).

Calling this method clears the records so that the next time it is called the return values refer only to new changes.

Returns a value from the ReloadType enumeration that specifies which type of change, if any, has occurred.

Parameters:

Item: Object

 

PeekReloadItem

ReloadType

This method behaves identically to GetReloadItem() but does not clear the change record.

 

Notes

After your model has been loaded, you only create the ModelWatcher once; if you reload the model, or load another model, the created ModelWatcher is still valid

 

Learn more