/***************************************************/ public static Space Space(this List <BuildingElement> space) { Point spaceCentre = space.SpaceCentre(); string xName = spaceCentre.X.ToString().Length > 3 ? spaceCentre.X.ToString().Substring(0, 3) : spaceCentre.X.ToString(); string yName = spaceCentre.Y.ToString().Length > 3 ? spaceCentre.Y.ToString().Substring(0, 3) : spaceCentre.Y.ToString(); string zName = spaceCentre.Z.ToString().Length > 3 ? spaceCentre.Z.ToString().Substring(0, 3) : spaceCentre.Z.ToString(); string spaceName = xName + "-" + yName + "-" + zName; return(Create.Space(spaceName, spaceName, space.SpaceCentre())); }
/***************************************************/ public static Space Space(this List <BuildingElement> space, string spaceNumber, string spaceName) { return(Create.Space(spaceName, spaceNumber, space.SpaceCentre())); }