SetDatatypeProperty

This function sets the value(s) of a certain datatypeTypeProperty in the context of an instance. The value of card gives the actual card of the value list. The list value of undefined (void) items is a list of booleans, chars, integers or doubles, this list has a length as givin in the value card. The actual used type is given by the definition of the dataTypeProperty.

Note: the client application needs to make sure the cardinality of the property is within the boundaries.

Syntax

public const string IFCEngineDLL = @"IFCEngine.dll";

[DllImport(IFCEngineDLL, EntryPoint = "SetDatatypeProperty")]
public static extern Int64 SetDatatypeProperty(Int64 owlInstance, Int64 rdfProperty, ref  Int64 value, Int64 card);

[DllImport(IFCEngineDLL, EntryPoint = "SetDatatypeProperty")]
public static extern Int64 SetDatatypeProperty(Int64 owlInstance, Int64 rdfProperty, ref double value, Int64 card);

[DllImport(IFCEngineDLL, EntryPoint = "SetDatatypeProperty")]
public static extern Int64 SetDatatypeProperty(Int64 owlInstance, Int64 rdfProperty, string value, Int64 card);

[DllImport(IFCEngineDLL, EntryPoint = "SetDatatypeProperty")]
public static extern Int64 SetDatatypeProperty(Int64 owlInstance, Int64 rdfProperty, byte[] value, Int64 card);    

Property owlInstance

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

Property rdfProperty

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

Property value

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

Property card

Size: 64 bit / 8 byte (value)
the cardinality of the array as given or returned