AddState

This call will integrate the current state information into the model.

Model should be non-zero.

If owlInstance is given the state is only applied on the owlInstance and all its children.
If owlInstance is zero the state is applied on all owlInstances within a model.

Syntax

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

[DllImport(enginedll, EntryPoint = "AddState")]
public static extern void AddState(Int64 model, Int64 owlInstance);    

Property model

Size: 64 bit / 8 byte (value)
The handle to the model. The model handle is static during its existance. Several models can be opened simultaniously within one session. Different models are always independent, threads are allowed to be running on different models simultaniously.

Property owlInstance

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.