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

        public static IBHoMObject FromRevit(this EnergyAnalysisOpening energyAnalysisOpening, Discipline discipline, RevitSettings settings = null, Dictionary <string, List <IBHoMObject> > refObjects = null)
        {
            switch (discipline)
            {
            case Discipline.Environmental:
            case Discipline.Architecture:
            case Discipline.Physical:
                return(energyAnalysisOpening.EnvironmentPanelFromRevit(null, settings, refObjects));

            default:
                return(null);
            }
        }
Ejemplo n.º 2
0
        /***************************************************/

        public static IBHoMObject FromRevit(this EnergyAnalysisOpening energyAnalysisOpening, Discipline discipline, Transform transform = null, RevitSettings settings = null, Dictionary <string, List <IBHoMObject> > refObjects = null)
        {
            IElement2D result = null;

            switch (discipline)
            {
            case Discipline.Facade:
            case Discipline.Environmental:
            case Discipline.Architecture:
            case Discipline.Physical:
                result = energyAnalysisOpening.EnvironmentPanelFromRevit(null, settings, refObjects);
                break;
            }

            if (result != null && transform?.IsIdentity == false)
            {
                TransformMatrix bHoMTransform = transform.FromRevit();
                result = result.ITransform(bHoMTransform);
            }

            return(result as IBHoMObject);
        }