diff --git a/XML_Adapter/Serialise/Panel.cs b/XML_Adapter/Serialise/Panel.cs index 0b646159..775e2726 100644 --- a/XML_Adapter/Serialise/Panel.cs +++ b/XML_Adapter/Serialise/Panel.cs @@ -89,8 +89,8 @@ public static void SerializeCollection(IEnumerable> inputElem List> 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); @@ -265,8 +265,8 @@ public static void SerializeCollection(IEnumerable 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();