engiGetAttrTraits

The function returns information how the attribute is declared in the schema. 'attribute' may by a base declaration received by sdaiGetAttrDefinition, engiGetEntityAttributeByIterator, etc. or redeclaration by engiGetAttrRedeclarationByIterator. 'definingEntity' is the entity which declares or re-decelerates the attribute.

Syntax

public const string ifcenginedll = @"ifcengine.dll";

[DllImport(ifcenginedll, EntryPoint = "engiGetAttrTraits")]
public static extern void engiGetAttrTraits(int_t attribute, out IntPtr name, out int_t definingEntity, [param: MarshalAs(UnmanagedType.U1)] out bool isExplicit, [param: MarshalAs(UnmanagedType.U1)] out bool isInverse, out enum_express_data_type attrType, out int_t domainEntity, out int_t aggregationDefinition, [param: MarshalAs(UnmanagedType.U1)] out bool isOptional);

public static void engiGetAttrTraits(int_t attribute, out string name, out int_t definingEntity, [param: MarshalAs(UnmanagedType.U1)] out bool isExplicit, [param: MarshalAs(UnmanagedType.U1)] out bool isInverse, out enum_express_data_type attrType, out int_t domainEntity, out int_t aggregationDefinition, [param: MarshalAs(UnmanagedType.U1)] out bool isOptional)
		{
			IntPtr nameIntPtr = IntPtr.Zero;
			engiGetAttrTraits(attribute, out nameIntPtr, out definingEntity, out isExplicit, out isInverse, out attrType, out domainEntity, out aggregationDefinition, out isOptional);
			name = marshalPtrToString(sdaiEXPRESSSTRING, nameIntPtr);
		}    

Property attribute

Size: 32 bit / 4 byte (reference)
...

Property name

Size: 32 bit / 4 byte (reference)
???.

Property definingEntity

Size: 32 bit / 4 byte (reference)
???.

Property isExplicit

Size: 32 bit / 4 byte (reference)
???.

Property isInverse

Size: 32 bit / 4 byte (reference)
???.

Property attrType

Size: 32 bit / 4 byte (reference)
???.

Property domainEntity

Size: 32 bit / 4 byte (reference)
???.

Property aggregationDefinition

Size: 32 bit / 4 byte (reference)
???.

Property isOptional

Size: 32 bit / 4 byte (reference)
???.