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; }
/// <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; } }
//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)); }
//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)); }
//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); }
//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); }