engiSetComment

This call can be used to add a comment to an instance when exporting the content. The comment is available in the exported/saved IFC file.

Syntax

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

[DllImport(enginedll, EntryPoint = "engiSetComment")]
public static extern void x86_engiSetComment(Int32 instance, string comment);

[DllImport(enginedll, EntryPoint = "engiSetComment")]
public static extern void x64_engiSetComment(Int64 instance, string comment);

public static void engiSetComment(Int64 instance, string comment)
		{
			if (IntPtr.Size == 4)
			{
				x86_engiSetComment((Int32)instance, comment);
			}
			else
			{
				x64_engiSetComment(instance, comment);
			}
		}

[DllImport(enginedll, EntryPoint = "engiSetComment")]
public static extern void x86_engiSetComment(Int32 instance, byte[] comment);

[DllImport(enginedll, EntryPoint = "engiSetComment")]
public static extern void x64_engiSetComment(Int64 instance, byte[] comment);

public static void engiSetComment(Int64 instance, byte[] comment)
		{
			if (IntPtr.Size == 4)
			{
				x86_engiSetComment((Int32)instance, comment);
			}
			else
			{
				x64_engiSetComment(instance, comment);
			}
		}    

Property instance

Size: 64 bit / 8 byte (value)
...

Property comment

Size: 64 bit / 8 byte (reference)
...