diff --git a/Architecture_Engine/Query/NewElement1D.cs b/Architecture_Engine/Query/NewElement1D.cs deleted file mode 100644 index 8edd593a4..000000000 --- a/Architecture_Engine/Query/NewElement1D.cs +++ /dev/null @@ -1,57 +0,0 @@ -/* - * This file is part of the Buildings and Habitats object Model (BHoM) - * Copyright (c) 2015 - 2024, the respective contributors. All rights reserved. - * - * Each contributor holds copyright over their respective contributions. - * The project versioning (Git) records all such contribution source information. - * - * - * The BHoM is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3.0 of the License, or - * (at your option) any later version. - * - * The BHoM is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this code. If not, see . - */ - -using BH.oM.Architecture.Elements; -using BH.oM.Dimensional; -using BH.oM.Geometry; -using BH.Engine.Geometry; - -using BH.oM.Base.Attributes; -using System.ComponentModel; -using BH.Engine.Base; - -namespace BH.Engine.Architecture -{ - public static partial class Query - { - /***************************************************/ - /**** Public Methods ****/ - /***************************************************/ - - [ToBeRemoved("3.2", "Was used for incode purposes of defaulting elements, a task which is now achived by providing a ICurve to the SetOutlineElement1D.")] - [Description("Returns an instance of an IElement1D from the given object")] - [Input("room", "An Architecture Room object")] - [Input("curve", "The curve to clone")] - [Output("element", "A 1D element object")] - public static IElement1D NewElement1D(this Room room, ICurve curve) - { - return curve.DeepClone(); - } - - /***************************************************/ - } -} - - - - - diff --git a/Architecture_Engine/Versioning_71.json b/Architecture_Engine/Versioning_71.json new file mode 100644 index 000000000..fffc46b7a --- /dev/null +++ b/Architecture_Engine/Versioning_71.json @@ -0,0 +1,5 @@ +{ + "MessageForDeleted": { + "BH.Engine.Architecture.Query.NewElement1D(BH.oM.Architecture.Elements.Room, BH.oM.Geometry.ICurve)": "NewElement methods were refactored in BHoM 3.2 with these methods marked for deletion, and have now been removed." + } +} \ No newline at end of file diff --git a/Diffing_Engine/Query/ListModifiedProperties.cs b/Diffing_Engine/Query/ListModifiedProperties.cs deleted file mode 100644 index e53381ade..000000000 --- a/Diffing_Engine/Query/ListModifiedProperties.cs +++ /dev/null @@ -1,104 +0,0 @@ -/* - * This file is part of the Buildings and Habitats object Model (BHoM) - * Copyright (c) 2015 - 2024, the respective contributors. All rights reserved. - * - * Each contributor holds copyright over their respective contributions. - * The project versioning (Git) records all such contribution source information. - * - * - * The BHoM is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3.0 of the License, or - * (at your option) any later version. - * - * The BHoM is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this code. If not, see . - */ - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.ComponentModel; -using BH.oM.Base.Attributes; -using BH.oM.Diffing; -using BH.oM.Base; -using System.Reflection; - - -namespace BH.Engine.Diffing -{ - public static partial class Query - { - [MultiOutput(0, "identifier", "Identifier of the objects which have some modified properties.\nWhen using Revisions, this is the Hash of the objects. When Diffing using CustomData, this is the specified Id.")] - [MultiOutput(1, "propNames", "List of properties changed per each object.")] - [MultiOutput(2, "value_current", "List of current values of the properties.")] - [MultiOutput(3, "value_past", "List of past values of the properties.")] - [ToBeRemoved("5.0", "Deprecated due to the new Diff object structure.")] - public static Output>, List>, List>, List>> ListModifiedProperties(this Dictionary>> modProps, List filterNames = null) - { - var output = new Output>, List>, List>, List>>(); - - List> objsHashTree = new List>(); - List> propNameTree = new List>(); - List> propValue_CurrentTree = new List>(); - List> propValue_ReadTree = new List>(); - - // These first empty assignments are needed to avoid UI to throw error "Object not set to an instance of an object" when input is null. - output.Item1 = objsHashTree; - output.Item2 = propNameTree; - output.Item3 = propValue_CurrentTree; - output.Item4 = propValue_ReadTree; - - if (modProps == null) - return output; - - foreach (var item in modProps) - { - List propNameList = new List(); - List propValue_CurrentList = new List(); - List propValue_ReadList = new List(); - - if (item.Value != null) - foreach (var propItem in item.Value) - { - string propName = propItem.Key.Replace(':', '.'); // removes the workaround imposed in DifferentProperties.cs. Allows to have the Explode working while maintaining the correct representation. See BHoM/BHoM_UI#241 - - - if ((filterNames == null || filterNames.Count == 0) || filterNames.Any(n => propName.Contains(n))) - { - propNameList.Add(propName); - propValue_CurrentList.Add(propItem.Value.Item1); - propValue_ReadList.Add(propItem.Value.Item2); - } - } - - if (propNameList.Any()) -{ - objsHashTree.Add(new List() { item.Key }); - propNameTree.Add(propNameList); - propValue_CurrentTree.Add(propValue_CurrentList); - propValue_ReadTree.Add(propValue_ReadList); - } - } - - output.Item1 = objsHashTree; - output.Item2 = propNameTree; - output.Item3 = propValue_CurrentTree; - output.Item4 = propValue_ReadTree; - - return output; - } - } -} - - - - - diff --git a/Diffing_Engine/Versioning_71.json b/Diffing_Engine/Versioning_71.json new file mode 100644 index 000000000..a4733c48c --- /dev/null +++ b/Diffing_Engine/Versioning_71.json @@ -0,0 +1,5 @@ +{ + "MessageForDeleted": { + "BH.Engine.Diffing.Query.ListModifiedProperties(System.Collections.Generic.Dictionary>>, System.Collections.Generic.List)": "This method has been deprecated since 5.0 due to the new Diffing object structure." + } +} \ No newline at end of file diff --git a/Environment_Engine/Query/CleanSpace.cs b/Environment_Engine/Query/CleanSpace.cs deleted file mode 100644 index 6b26a909f..000000000 --- a/Environment_Engine/Query/CleanSpace.cs +++ /dev/null @@ -1,79 +0,0 @@ -/* - * This file is part of the Buildings and Habitats object Model (BHoM) - * Copyright (c) 2015 - 2024, the respective contributors. All rights reserved. - * - * Each contributor holds copyright over their respective contributions. - * The project versioning (Git) records all such contribution source information. - * - * - * The BHoM is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3.0 of the License, or - * (at your option) any later version. - * - * The BHoM is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this code. If not, see . - */ - -using System; -using System.Collections.Generic; - -using System.Linq; -using BH.oM.Environment.Elements; - -using BH.Engine.Geometry; -using BH.oM.Geometry; - -using BH.oM.Base.Attributes; -using System.ComponentModel; - -namespace BH.Engine.Environment -{ - public static partial class Query - { - /***************************************************/ - /**** Public Methods ****/ - /***************************************************/ - - [Description("Removes panels which do not have a suitable connection to the space (i.e. panels with only 1 connection to the space)")] - [Input("panelsAsSpace", "A collection of Environment Panels representing a single space")] - [Output("panelsAsSpace", "A collection of Environment Panels representing a single space with incorrect panels removed")] - [ToBeRemoved("3.3", "Removed as this method does not provide any meaningful computation to panels owing to the connected space attribute not being updated.")] - public static List CleanSpace(this List panelsAsSpace) - { - //Remove elements which have 1 or less connections with other elements - List cleanSpace = new List(); - - List allEdges = new List(); - foreach (Panel p in panelsAsSpace) - allEdges.AddRange(p.ToLines()); - - foreach(Panel be in panelsAsSpace) - { - List edges = be.ToLines(); - bool addSpace = true; - foreach (Line l in edges) - { - if (allEdges.Where(x => x.BooleanIntersection(l) != null).ToList().Count < 2) - addSpace = false; - } - - if(addSpace) - cleanSpace.Add(be); - } - - cleanSpace = cleanSpace.CullDuplicates(); - - return cleanSpace; - } - } -} - - - - diff --git a/Environment_Engine/Query/FilterPanels.cs b/Environment_Engine/Query/FilterPanels.cs index 827df8c03..573d21ef5 100644 --- a/Environment_Engine/Query/FilterPanels.cs +++ b/Environment_Engine/Query/FilterPanels.cs @@ -195,16 +195,6 @@ public static List FilterPanelsByTiltRange(this List panels, doubl return panels.Where(x => x.Tilt() >= minTilt && x.Tilt() <= maxTilt).ToList(); } - [Description("Returns a collection of Environment Panels that DO NOT match a given Panel Type")] - [Input("panels", "A collection of Environment Panels")] - [Input("type", "A Panel Type to filter by from the Panel Type enum")] - [Output("panels", "A collection of Environment Panel that DO NOT match the given type")] - [ToBeRemoved("3.3", "Replaced by FilterPanelsByType which provides the panels which match and don't match a given type")] - public static List FilterPanelsNotByType(this List panels, PanelType type) - { - return panels.Where(x => x.Type != type).ToList(); - } - [Description("Returns a collection of Environment Panels that match the provided types as the first output, and the panels which don't match the provided types as the second output")] [Input("panels", "A collection of Environment Panels")] [Input("types", "One or more Panel Types to filter by from the Panel Type enum")] diff --git a/Environment_Engine/Versioning_71.json b/Environment_Engine/Versioning_71.json index 7b4e80715..0c302e9bb 100644 --- a/Environment_Engine/Versioning_71.json +++ b/Environment_Engine/Versioning_71.json @@ -5,6 +5,8 @@ "BH.Engine.Environment.Query.NewElement1D(BH.oM.Environment.Elements.Space, BH.oM.Geometry.ICurve)": "NewElement methods were refactored in BHoM 3.2 with these methods marked for deletion, and have now been removed.", "BH.Engine.Environment.Create.NewElement1D(BH.oM.Environment.Elements.Opening, BH.oM.Geometry.ICurve)": "NewElement methods were refactored in BHoM 3.2 with these methods marked for deletion, and have now been removed.", "BH.Engine.Environment.Create.NewElement1D(BH.oM.Environment.Elements.Panel, BH.oM.Geometry.ICurve)": "NewElement methods were refactored in BHoM 3.2 with these methods marked for deletion, and have now been removed.", - "BH.Engine.Environment.Create.NewInternalElement2D(BH.oM.Environment.Elements.Panel)": "NewElement methods were refactored in BHoM 3.2 with these methods marked for deletion, and have now been removed." + "BH.Engine.Environment.Create.NewInternalElement2D(BH.oM.Environment.Elements.Panel)": "NewElement methods were refactored in BHoM 3.2 with these methods marked for deletion, and have now been removed.", + "BH.Engine.Environment.Query.CleanSpace(System.Collections.Generic.List)": "This method has been deprecated since 3.3, as it provided no meaningful output as the connected space attribute was not updated.", + "BH.Engine.Environment.Query.FilterPanelsNotByType(System.Collections.Generic.List, BH.oM.Environment.Elements.PanelType)": "This method has been deprecated since 3.3, as its functionality has been captured by FilterPanelsByType which now outputs matched and unmatched panels." } } \ No newline at end of file diff --git a/Geometry_Engine/Query/Centre.cs b/Geometry_Engine/Query/Centre.cs index de12af726..9b8eceaed 100644 --- a/Geometry_Engine/Query/Centre.cs +++ b/Geometry_Engine/Query/Centre.cs @@ -37,19 +37,6 @@ public static Point Centre(this Arc arc, double tolerance = Tolerance.Distance) return arc.CoordinateSystem.Origin; } - /***************************************************/ - - [ToBeRemoved("4.1", "To be removed as it is generally incorrect. Advising using Centroid instead.")] - public static Point Centre(this Polyline polyline, double tolerance = Tolerance.Distance) - { - //TODO: this is an average point, not centroid - should be distinguished - - if (!polyline.IsClosed(tolerance)) - return polyline.ControlPoints.Average(); // TODO: not true for a self-intersecting polyline? - else - return polyline.ControlPoints.GetRange(0, polyline.ControlPoints.Count - 1).Average(); - } - /***************************************************/ /**** Surfaces ****/ /***************************************************/ diff --git a/Geometry_Engine/Query/Radius.cs b/Geometry_Engine/Query/Radius.cs deleted file mode 100644 index 12ae078ad..000000000 --- a/Geometry_Engine/Query/Radius.cs +++ /dev/null @@ -1,48 +0,0 @@ -/* - * This file is part of the Buildings and Habitats object Model (BHoM) - * Copyright (c) 2015 - 2024, the respective contributors. All rights reserved. - * - * Each contributor holds copyright over their respective contributions. - * The project versioning (Git) records all such contribution source information. - * - * - * The BHoM is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3.0 of the License, or - * (at your option) any later version. - * - * The BHoM is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this code. If not, see . - */ - -using BH.oM.Geometry; -using BH.oM.Base.Attributes; - -namespace BH.Engine.Geometry -{ - public static partial class Query - { - /***************************************************/ - /**** Public Methods ****/ - /***************************************************/ - - [ToBeRemoved("4.1", "To be removed as radius is a public property of the Arc class.")] - public static double Radius(this Arc arc) - { - //TODO: remove this method? - return arc.Radius; - } - - /***************************************************/ - } -} - - - - - diff --git a/Geometry_Engine/Versioning_71.json b/Geometry_Engine/Versioning_71.json new file mode 100644 index 000000000..07ee775e8 --- /dev/null +++ b/Geometry_Engine/Versioning_71.json @@ -0,0 +1,6 @@ +{ + "MessageForDeleted": { + "BH.Engine.Geometry.Query.Centre(BH.oM.Geometry.Polyline, System.Double)": "This method has been deprecated since 4.1, as the method used was incorrect. If this method was used, please replace with the Centroid method instead", + "BH.Engine.Geometry.Query.Radius(BH.oM.Geometry.Arc)": "This method has been deprecated since 4.1, as Radius is now a public property of the Arc class" + } +} \ No newline at end of file diff --git a/Structure_Engine/Convert/FEMeshToPanel.cs b/Structure_Engine/Convert/FEMeshToPanel.cs index 118d457d7..2ebec4de1 100644 --- a/Structure_Engine/Convert/FEMeshToPanel.cs +++ b/Structure_Engine/Convert/FEMeshToPanel.cs @@ -72,7 +72,7 @@ public static List FEMeshToPanel(this FEMesh feMesh) Panel panel = new Panel(); foreach (Polyline polyline in polylines) { - panel = Create.Panel(polyline, null, null, feMesh.Name); + panel = Create.Panel(polyline, name:feMesh.Name); if (feMesh.Property != null) { panel.Property = feMesh.Property; diff --git a/Structure_Engine/Create/Elements/Panel.cs b/Structure_Engine/Create/Elements/Panel.cs index 0f6939ee0..d48b06196 100644 --- a/Structure_Engine/Create/Elements/Panel.cs +++ b/Structure_Engine/Create/Elements/Panel.cs @@ -151,28 +151,6 @@ public static Panel Panel(PlanarSurface surface, ISurfaceProperty property = nul } /***************************************************/ - /**** Public Methods - ToBeRemoved ****/ - /***************************************************/ - - [ToBeRemoved("3.1", "Method that use a mixture of geometry and objects between edges and openings removed.")] - public static Panel Panel(List externalEdges, List openings = null, ISurfaceProperty property = null, string name = "") - { - List pOpenings = openings != null ? openings.Select(o => Create.Opening(o)).ToList() : new List(); - return Panel(externalEdges, pOpenings, property, null, name); - } - - /***************************************************/ - - [ToBeRemoved("3.1", "Method that use a mixture of geometry and objects between edges and openings removed.")] - public static Panel Panel(ICurve outline, List openings = null, ISurfaceProperty property = null, string name = "") - { - if (!outline.IIsClosed()) return null; - List externalEdges = outline.ISubParts().Select(x => new Edge { Curve = x }).ToList(); - - return Panel(externalEdges, openings, property, null, name); - } - - /***************************************************/ } } diff --git a/Structure_Engine/Create/Loads/AreaUniformlyDistributedLoad.cs b/Structure_Engine/Create/Loads/AreaUniformlyDistributedLoad.cs index aacc7789a..f1f42de6b 100644 --- a/Structure_Engine/Create/Loads/AreaUniformlyDistributedLoad.cs +++ b/Structure_Engine/Create/Loads/AreaUniformlyDistributedLoad.cs @@ -65,25 +65,6 @@ public static AreaUniformlyDistributedLoad AreaUniformlyDistributedLoad(Loadcase }; } - /***************************************************/ - /**** Public Methods - ToBeRemoved ****/ - /***************************************************/ - - [ToBeRemoved("3.1", "Replaced with autogenerated Property assignement method")] - public static AreaUniformlyDistributedLoad AreaUniformlyDistributedLoad(Loadcase loadcase, Vector pressure, BHoMGroup group, LoadAxis axis = LoadAxis.Global, bool projected = false, string name = "") - { - //To be removed in version 5.2 or later to allow for this method to be target of upgrade done in 5.1 - return new AreaUniformlyDistributedLoad - { - Loadcase = loadcase, - Pressure = pressure, - Objects = group, - Axis = axis, - Projected = projected, - Name = name - }; - } - /***************************************************/ } } diff --git a/Structure_Engine/Create/Loads/BarUniformTemperatureLoad.cs b/Structure_Engine/Create/Loads/BarUniformTemperatureLoad.cs index f50c2c13c..7640bb489 100644 --- a/Structure_Engine/Create/Loads/BarUniformTemperatureLoad.cs +++ b/Structure_Engine/Create/Loads/BarUniformTemperatureLoad.cs @@ -65,26 +65,6 @@ public static BarUniformTemperatureLoad BarUniformTemperatureLoad(Loadcase loadc }; } - /***************************************************/ - /**** Public Methods - ToBeRemoved ****/ - /***************************************************/ - - [ToBeRemoved("3.1", "Replaced with autogenerated Property assignement method.")] - public static BarUniformTemperatureLoad BarUniformTemperatureLoad(Loadcase loadcase, double temperatureChange, BHoMGroup group, LoadAxis axis = LoadAxis.Global, bool projected = false, string name = "") - { - //Method currently can not be removed due to being the target of a previous version upgrade from 3.3. - //To be removed as soon as Versioning to create method via stepped upgrade is supported. - return new BarUniformTemperatureLoad - { - Loadcase = loadcase, - TemperatureChange = temperatureChange, - Objects = group, - Axis = axis, - Projected = projected, - Name = name - }; - } - /***************************************************/ } } diff --git a/Structure_Engine/Create/Loads/ContourLoad.cs b/Structure_Engine/Create/Loads/ContourLoad.cs deleted file mode 100644 index 62ad8d32a..000000000 --- a/Structure_Engine/Create/Loads/ContourLoad.cs +++ /dev/null @@ -1,69 +0,0 @@ -/* - * This file is part of the Buildings and Habitats object Model (BHoM) - * Copyright (c) 2015 - 2024, the respective contributors. All rights reserved. - * - * Each contributor holds copyright over their respective contributions. - * The project versioning (Git) records all such contribution source information. - * - * - * The BHoM is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3.0 of the License, or - * (at your option) any later version. - * - * The BHoM is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this code. If not, see . - */ - -using BH.oM.Geometry; -using BH.oM.Structure.Loads; -using BH.oM.Base; -using BH.oM.Structure.Elements; -using System.Collections.Generic; -using System.Linq; -using System; -using System.ComponentModel; -using BH.oM.Base.Attributes; - -namespace BH.Engine.Structure -{ - public static partial class Create - { - /***************************************************/ - /**** Public Methods ****/ - /***************************************************/ - - - /***************************************************/ - /**** Public Methods - ToBeRemoved ****/ - /***************************************************/ - - [ToBeRemoved("3.1", "Replaced with autogenerated Property assignement method.")] - public static ContourLoad ContourLoad(Polyline contour, Vector loadVector, Loadcase loadcase, LoadAxis axis = LoadAxis.Global, bool projected = false, string name = "") - { - //To be removed in version 6.2 or later to allow for this method to be target of upgrade done in 6.1 - return new ContourLoad - { - Contour = contour, - Force = loadVector, - Loadcase = loadcase, - Axis = axis, - Projected = projected, - Name = name - }; - } - - /***************************************************/ - - } -} - - - - - diff --git a/Structure_Engine/Create/Loads/GeometricalLineLoad.cs b/Structure_Engine/Create/Loads/GeometricalLineLoad.cs index 316c17dc0..1c1bb1a45 100644 --- a/Structure_Engine/Create/Loads/GeometricalLineLoad.cs +++ b/Structure_Engine/Create/Loads/GeometricalLineLoad.cs @@ -92,26 +92,6 @@ public static GeometricalLineLoad GeometricalLineLoad(Line location, Loadcase lo }; } - /***************************************************/ - /**** Public Methods - ToBeRemoved ****/ - /***************************************************/ - - [ToBeRemoved("3.1", "Replaced with autogenerated Property assignement method.")] - public static GeometricalLineLoad GeometricalLineLoad(Line location, Loadcase loadcase, Vector forceAtStart, Vector forceAtEnd, Vector momentAtStart, Vector momentAtEnd, string name = "") - { - //To be removed in version 6.2 or later to allow for this method to be target of upgrade done in 6.1 - return new GeometricalLineLoad - { - Location = location, - Loadcase = loadcase, - ForceA = forceAtStart, - ForceB = forceAtEnd, - MomentA = momentAtStart, - MomentB = momentAtEnd, - Name = name - }; - } - /***************************************************/ } } diff --git a/Structure_Engine/Create/Loads/Load.cs b/Structure_Engine/Create/Loads/Load.cs index 528c1c982..a6f80dd2e 100644 --- a/Structure_Engine/Create/Loads/Load.cs +++ b/Structure_Engine/Create/Loads/Load.cs @@ -144,7 +144,7 @@ public static ILoad Load(LoadType type, Loadcase loadcase, List magnitud case LoadType.AreaUniformLoad: { BHoMGroup group = new BHoMGroup() { Name = groupName }; - return AreaUniformlyDistributedLoad(loadcase, force, group, axis, isProjected, groupName); + return new AreaUniformlyDistributedLoad() { Loadcase = loadcase, Pressure = force, Objects = group, Axis = axis, Projected = isProjected, Name = groupName }; } case LoadType.BarVaryingLoad: case LoadType.BarPointLoad: diff --git a/Structure_Engine/Create/Requests/FilterRequest.cs b/Structure_Engine/Create/Requests/FilterRequest.cs deleted file mode 100644 index 4349ce7a7..000000000 --- a/Structure_Engine/Create/Requests/FilterRequest.cs +++ /dev/null @@ -1,72 +0,0 @@ -/* - * This file is part of the Buildings and Habitats object Model (BHoM) - * Copyright (c) 2015 - 2024, the respective contributors. All rights reserved. - * - * Each contributor holds copyright over their respective contributions. - * The project versioning (Git) records all such contribution source information. - * - * - * The BHoM is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3.0 of the License, or - * (at your option) any later version. - * - * The BHoM is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this code. If not, see . - */ - -using BH.oM.Data.Requests; -using System.Collections.Generic; -using System.Linq; -using BH.oM.Base.Attributes; -using System.ComponentModel; -using BH.oM.Structure.Results; -using BH.oM.Geometry.CoordinateSystem; - -namespace BH.Engine.Structure.Results -{ - public static partial class Create - { - /***************************************************/ - /**** Public Methods - ToBeRemoved ****/ - /***************************************************/ - - [ToBeRemoved("3.1", "ToBeRemoved as functionality has been replaced by MeshResultRequest.")] - [Description("Specific filter request to retrieve structural mesh results.")] - public static FilterRequest MeshResult( MeshResultSmoothingType smoothing, - MeshResultLayer layer, - double layerPosition, - MeshResultType resultType, - Cartesian coordinateSystem = null, - IEnumerable cases = null, - IEnumerable objectIds = null) - { - FilterRequest request = new FilterRequest(); - request.Type = typeof(MeshResult); - - request.Equalities["Smoothing"] = smoothing; - request.Equalities["Layer"] = layer; - request.Equalities["LayerPosition"] = layerPosition; - request.Equalities["ResultType"] = resultType; - request.Equalities["CoordinateSystem"] = coordinateSystem; - if (cases != null) - request.Equalities["Cases"] = cases.ToList(); - if (objectIds != null) - request.Equalities["ObjectIds"] = objectIds.ToList(); - - return request; - } - - /***************************************************/ - } -} - - - - - diff --git a/Structure_Engine/Versioning_71.json b/Structure_Engine/Versioning_71.json index 0913c9170..7f8775e25 100644 --- a/Structure_Engine/Versioning_71.json +++ b/Structure_Engine/Versioning_71.json @@ -37,7 +37,14 @@ "BH.Engine.Structure.Create.PerimeterReinforcement(System.Double, System.Int32, BH.oM.Structure.SectionProperties.Reinforcement.ReinforcementPattern)": "Reinforcement objects were refactored in BHoM 3.2 with these objects marked for deletion which have now been removed. Please reach out to the development team if you require support in upgrading your methods.", "BH.Engine.Structure.Create.TieReinforcement(System.Double, System.Double, System.Int32)": "Reinforcement objects were refactored in BHoM 3.2 with these objects marked for deletion which have now been removed. Please reach out to the development team if you require support in upgrading your methods.", "BH.Engine.Structure.Query.IsNull(Bh.oM.Structure.SectionProperties.Reinforcement.Reinforcement, System.String, System.String)": "Reinforcement objects were refactored in BHoM 3.2 with these objects marked for deletion which have now been removed. Please reach out to the development team if you require support in upgrading your methods.", - "BH.Engine.Structure.Query.TieDiameter(BH.oM.Structure.SectionProperties.ConcreteSection)": "Reinforcement objects were refactored in BHoM 3.2 with these objects marked for deletion which have now been removed. Please reach out to the development team if you require support in upgrading your methods." + "BH.Engine.Structure.Query.TieDiameter(BH.oM.Structure.SectionProperties.ConcreteSection)": "Reinforcement objects were refactored in BHoM 3.2 with these objects marked for deletion which have now been removed. Please reach out to the development team if you require support in upgrading your methods.", + "BH.Engine.Structure.Create.Panel(BH.oM.Geometry.ICurve, System.Collections.Generic.List, BH.oM.Structure.SurfaceProperties.ISurfaceProperty, System.String)": "This method has been deprecated since 3.1, and has been removed.", + "BH.Engine.Structure.Create.Panel(System.Collections.Generic.List, System.Collections.Generic.List, BH.oM.Structure.SurfaceProperties.ISurfaceProperty, System.String)": "This method has been deprecated since 3.1, and has been removed.", + "BH.Engine.Structure.Create.AreaUniformlyDistributedLoad(BH.oM.Structure.Loads.Loadcase, BH.oM.Geometry.Vector, BH.oM.Base.BHoMGroup, BH.oM.Structure.Loads.LoadAxis, System.Boolean, System.String)": "This method has been deprecated since 3.1, as it was replaced with the autogenerated propery assignment method.", + "BH.Engine.Structure.Create.BarUniformTemperatureLoad(BH.oM.Structure.Loads.Loadcase, System.Double, BH.oM.Base.BHoMGroup, BH.oM.Structure.Loads.LoadAxis, System.Boolean, System.String)": "This method has been deprecated since 3.1, as it was replaced with the autogenerated propery assignment method.", + "BH.Engine.Structure.Create.ContourLoad(BH.oM.Geometry.Polyline, BH.oM.Geometry.Vector, BH.oM.Structure.Loads.Loadcase, BH.oM.Structure.Loads.LoadAxis, System.Boolean, System.String)": "This method has been deprecated since 3.1, as it was replaced with the autogenerated propery assignment method.", + "BH.Engine.Structure.Results.Create.MeshResult(BH.oM.Structure.Results.MeshResultSmoothingType, BH.oM.Structure.Results.MeshResultLayer, System.Double, BH.oM.Structure.Results.MeshResultType, BH.oM.Geometry.CoordinateSystem.Cartesian, System.Collections.Generic.IEnumerable, System.Collections.Generic.IEnumerable)": "This method has been deprecated since 3.1, as its functionality has been replaced by MeshResultRequest.", + "BH.Engine.Structure.Create.GeometricalLineLoad(BH.oM.Geometry.Line, BH.oM.Structure.Loads.Loadcase, BH.oM.Geometry.Vector, BH.oM.Geometry.Vector, BH.oM.Geometry.Vector, BH.oM.Geometry.Vector, System.String)": "This method has been deprecated since 3.1, as its functionality was replaced with auto-generated Property methods." }, "MessageForNoUpgrade": {