Skip to content

Commit

Permalink
#323 - fix openings for IES
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraser Greenroyd committed Jul 15, 2019
1 parent 908a81e commit a5df0eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions XML_Adapter/Serialise/Panel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ public static void SerializeCollection(IEnumerable<IEnumerable<Panel>> inputElem
List<List<Panel>> adjacentSpaces = BH.Engine.Environment.Query.AdjacentSpaces(space[x], elementsAsSpaces);

Surface srf = space[x].ToGBXML(adjacentSpaces, space);
srf.ID = "Panel" + gbx.Campus.Surface.Count.ToString().Replace(" ", "").Replace("-", "");
srf.Name = "Panel-" + gbx.Campus.Surface.Count.ToString();
srf.ID = "Panel-" + gbx.Campus.Surface.Count.ToString().Replace(" ", "").Replace("-", "");
srf.Name = "Panel" + gbx.Campus.Surface.Count.ToString().Replace(" ", "").Replace("-", "");

if (space[x] != null)
srf.CADObjectID = BH.Engine.XML.Query.CADObjectID(space[x], exportType);
Expand Down Expand Up @@ -265,8 +265,8 @@ public static void SerializeCollection(IEnumerable<Panel> inputElements, BH.oM.X
foreach (Panel be in buildingElements)
{
Surface gbSrf = be.ToGBXML();
gbSrf.ID = "Panel" + gbx.Campus.Surface.Count.ToString().Replace(" ", "").Replace("-", ""); ;
gbSrf.Name = "Panel-" + gbx.Campus.Surface.Count.ToString();
gbSrf.ID = "Panel-" + gbx.Campus.Surface.Count.ToString().Replace(" ", "").Replace("-", "");
gbSrf.Name = "Panel" + gbx.Campus.Surface.Count.ToString().Replace(" ", "").Replace("-", "");
gbSrf.SurfaceType = "Shade";
gbSrf.ExposedToSun = BH.Engine.XML.Query.ExposedToSun(gbSrf.SurfaceType).ToString().ToLower();
gbSrf.CADObjectID = be.CADObjectID();
Expand Down

0 comments on commit a5df0eb

Please sign in to comment.