private bool IsInstanceOf(IntPtr iInstance, string strType) { if (IFCEngine.GetInstanceType(iInstance) == IFCEngine.GetEntity(IfcModel, strType)) { return(true); } return(false); }