예제 #1
0
        private FenestrationSurface(Surface surface, BuildingSurface buildingSurface, int multiplier, string constructionName = "default")
        {
            Name = buildingSurface.Name + " - Window " + buildingSurface.FenestrationSurfacesNumber;

            Type = "Window";

            ConstructionName = constructionName == "default"
                ? "000 Standard Window"
                : constructionName;

            SurfaceName     = buildingSurface.Name;
            BuildingSurface = buildingSurface;
            Surface         = surface;
            buildingSurface.FenestrationSurfacesNumber++;

            Multiplier = multiplier;
        }
예제 #2
0
        private FenestrationSurface(Surface surface, BuildingSurface buildingSurface, int multiplier, string constructionName = "default")
        {
            Name = buildingSurface.Name + " - Window " + buildingSurface.FenestrationSurfacesNumber;

            Type = "Window";

            ConstructionName = constructionName == "default"
                ? "000 Standard Window"
                : constructionName;

            SurfaceName = buildingSurface.Name;
            BuildingSurface = buildingSurface;
            Surface = surface;
            buildingSurface.FenestrationSurfacesNumber++;

            Multiplier = multiplier;
        }
예제 #3
0
        /// <summary>
        /// Sets the BuildingSurface in Relation to another one (BoundaryCondition is set to "Surface").
        /// </summary>
        /// <param name="otherBuildingSurface">The related BuildingSurface</param>
        public void SetRelation(BuildingSurface otherBuildingSurface)
        {
            BoundaryCondition = "Surface";
            BoundaryObject    = otherBuildingSurface.Name;
            SunExposed        = false;
            WindExposed       = false;

            switch (Type)
            {
            case "Roof":
                Type             = "Ceiling";
                ConstructionName = GetDefault(Type, "Surface");
                break;

            case "Wall":
                ConstructionName = GetDefault(Type, "Surface");
                break;

            default:
                ConstructionName = GetDefault(Type, "Surface");
                break;
            }
        }
예제 #4
0
        /// <summary>
        /// Sets the BuildingSurface in Relation to another one (BoundaryCondition is set to "Surface").
        /// </summary>
        /// <param name="otherBuildingSurface">The related BuildingSurface</param>
        public void SetRelation(BuildingSurface otherBuildingSurface)
        {
            BoundaryCondition = "Surface";
            BoundaryObject = otherBuildingSurface.Name;
            SunExposed = false;
            WindExposed = false;

            switch (Type)
            {
                case "Roof":
                    Type = "Ceiling";
                    ConstructionName = GetDefault(Type, "Surface");
                    break;
                case "Wall":
                    ConstructionName = GetDefault(Type, "Surface");
                    break;
                default:
                    ConstructionName = GetDefault(Type, "Surface");
                    break;
            }
        }
예제 #5
0
 //Get 'Fenestration Surface by Selected Surface
 /// <summary>
 /// Adds a Fenestration Surface in a Surface
 /// </summary>
 /// <param name="surface">A Dynamo Surface</param>
 /// <param name="buildingSurface">The Dynamo BuildingSurface that the window is placed on.</param>
 /// <returns></returns>
 public static FenestrationSurface FenestrationSurfaceBySurface(Surface surface, BuildingSurface buildingSurface)
 {
     return(new FenestrationSurface(surface, buildingSurface, 1));
 }
예제 #6
0
 //Get 'Fenestration Surface by Selected Surface
 /// <summary>
 /// Adds a Fenestration Surface in a Surface
 /// </summary>
 /// <param name="surface">A Dynamo Surface</param>
 /// <param name="buildingSurface">The Dynamo BuildingSurface that the window is placed on.</param>
 /// <param name="constructionName">The ConstructionName for the Window.</param>
 /// <param name="multiplier">The Multiplier for the window.</param>
 /// <returns></returns>
 public static FenestrationSurface FenestrationSurfaceBySurface(Surface surface, BuildingSurface buildingSurface, string constructionName, int multiplier)
 {
     return(new FenestrationSurface(surface, buildingSurface, multiplier, constructionName));
 }
예제 #7
0
 //Get 'Fenestration Surface by Selected Surface
 /// <summary>
 /// Adds a Fenestration Surface in a Surface
 /// </summary>
 /// <param name="surface">A Dynamo Surface</param>
 /// <param name="buildingSurface">The Dynamo BuildingSurface that the window is placed on.</param>
 /// <param name="constructionName">The ConstructionName for the Window.</param>
 /// <param name="multiplier">The Multiplier for the window.</param>
 /// <returns></returns>
 public static FenestrationSurface FenestrationSurfaceBySurface(Surface surface, BuildingSurface buildingSurface, string constructionName, int multiplier)
 {
     return new FenestrationSurface(surface, buildingSurface, multiplier, constructionName);
 }
예제 #8
0
 //Get 'Fenestration Surface by Selected Surface
 /// <summary>
 /// Adds a Fenestration Surface in a Surface
 /// </summary>
 /// <param name="surface">A Dynamo Surface</param>
 /// <param name="buildingSurface">The Dynamo BuildingSurface that the window is placed on.</param>
 /// <returns></returns>
 public static FenestrationSurface FenestrationSurfaceBySurface(Surface surface, BuildingSurface buildingSurface)
 {
     return new FenestrationSurface(surface, buildingSurface, 1);
 }