Ejemplo n.º 1
0
        /***************************************************/
        /****             Interface Methods             ****/
        /***************************************************/

        public static Element IToRevit(this IBHoMObject obj, Document document, RevitSettings settings = null, Dictionary <Guid, List <int> > refObjects = null)
        {
            if (obj == null)
            {
                BH.Engine.Reflection.Compute.RecordWarning("Revit Element could not be created because BHoM object does not exist.");
                return(null);
            }

            Element result = ToRevit(obj as dynamic, document, settings, refObjects);

            if (result == null)
            {
                obj.NotConvertedError();
            }

            return(result);
        }