ConsolidateInstanceTree

All technically unnecessary structures within the tree referenced by the owlInstance will be removed. These structures could be relevant for semantical representation, such semantic meaning is lost. The resulting geometry will however be the same.

Syntax

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

[DllImport(enginedll, EntryPoint = "ConsolidateInstanceTree")]
public static extern Int64 x86_ConsolidateInstanceTree(Int64 owlInstance);

[DllImport(enginedll, EntryPoint = "ConsolidateInstanceTree")]
public static extern Int64 x64_ConsolidateInstanceTree(Int64 owlInstance);

public static Int64 ConsolidateInstanceTree(Int64 owlInstance)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_ConsolidateInstanceTree(owlInstance);
				return _result;
			}
			else
			{
				return x64_ConsolidateInstanceTree(owlInstance);
			}
		}    

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.