SetPropertyTypeEx

Syntax

public const string EngineDLL = @"engine.dll";[DllImport(EngineDLL, EntryPoint = "SetPropertyTypeEx")]
public static extern Int64 SetPropertyTypeEx(Int64 model, Int64 rdfProperty, Int64 propertyType);    

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 rdfProperty

Size: 64 bit / 8 byte (value)
This attribute represents a handle to the property, this can be either a datatype property (attribute), an object property (relation) or non-defined property. The handle will be static during the life-time of the model, when the model (or part of it) is saved and opened again, the handle will most probably be different.

Property propertyType

Size: 64 bit / 8 byte (value)
The type of the property, either not defined or a datatype property (attribute) or an object property (relation). The following values are possible for propertyType:
    0  [default] not defined property type
    1  The property is an Object Property
    2  The property is an Datatype Property of type Boolean
    3  The property is an Datatype Property of type Char
    4  The property is an Datatype Property of type Integer
    5  The property is an Datatype Property of type Double