private string getInstanceType(IntPtr instance) { IntPtr ifcTypeIns = _ifcEngine.GetInstanceType(instance); IntPtr name = IntPtr.Zero; _ifcEngine.GetEntityName(ifcTypeIns, IfcEngine.SdaiType.String, out name); return(Marshal.PtrToStringAnsi(name)); }