/// <summary> /// Create an IFCConic object from a handle of type IfcConic /// </summary> /// <param name="ifcConic">The IFC handle</param> /// <returns>The IFCConic object</returns> public static IFCConic ProcessIFCConic(IFCAnyHandle ifcConic) { if (IFCAnyHandleUtil.IsNullOrHasNoValue(ifcConic)) { Importer.TheLog.LogNullError(IFCEntityType.IfcConic); return(null); } if (IFCAnyHandleUtil.IsValidSubTypeOf(ifcConic, IFCEntityType.IfcCircle)) { return(IFCCircle.ProcessIFCCircle(ifcConic)); } else if (IFCAnyHandleUtil.IsValidSubTypeOf(ifcConic, IFCEntityType.IfcEllipse)) { return(IFCEllipse.ProcessIFCEllipse(ifcConic)); } Importer.TheLog.LogUnhandledSubTypeError(ifcConic, IFCEntityType.IfcConic, true); return(null); }