engiGetAggrUnknownElement
Syntax
public const string ifcenginedll = @"ifcengine.dll"; [DllImport(IFCEngineDLL, EntryPoint = "engiGetAggrUnknownElement")] public static extern void engiGetAggrUnknownElement(int_t aggregate, int_t elementIndex, out int_t valueType, out bool value); [DllImport(IFCEngineDLL, EntryPoint = "engiGetAggrUnknownElement")] public static extern void engiGetAggrUnknownElement(int_t aggregate, int_t elementIndex, out int_t valueType, out int_t value); [DllImport(IFCEngineDLL, EntryPoint = "engiGetAggrUnknownElement")] public static extern void engiGetAggrUnknownElement(int_t aggregate, int_t elementIndex, out int_t valueType, out double value); [DllImport(IFCEngineDLL, EntryPoint = "engiGetAggrUnknownElement")] public static extern void engiGetAggrUnknownElement(int_t aggregate, int_t elementIndex, out int_t valueType, out IntPtr value); public static void engiGetAggrUnknownElement(int_t aggregate, int_t elementIndex, out int_t valueType, out string value) { value = null; valueType = getStringType(valueType); if (valueType != 0) { IntPtr ptr = IntPtr.Zero; var ret = engiGetAggrUnknownElement(aggregate, elementIndex, out valueType, out ptr); if (ret != 0 && ptr != IntPtr.Zero) { value = marshalPtrToString(valueType, ptr); return ret; } } return 0; }