InstanceInContext structures are updated dynamically and therfore even while the cost in performance and memory is limited it is advised to destroy structures as soon as they are obsolete.


public const string enginedll = @"engine.dll";

[DllImport(enginedll, EntryPoint = "DestroyInstanceInContextStructure")]
public static extern void DestroyInstanceInContextStructure(Int64 owlInstanceInContext);    

Property owlInstanceInContext

Size: 64 bit / 8 byte (value)
The handle to the specific instance in the design tree. The instance handle is static within one open model but is most probably different when the same instance is opened in another model. The instance is always exactly of one unique class.