Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove 6.1 PreviousVersion Attributes #3032

Merged
merged 1 commit into from
Mar 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Analytical_Engine/Query/Geometry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public static partial class Query
/**** Public Methods ****/
/***************************************************/

[PreviousVersion("6.1", "BH.Engine.Structure.Query.Position(BH.oM.Structure.Elements.Node)")]
[Description("Gets the geometry of a INode as a Point. Method required for automatic display in UI packages.")]
[Input("node", "INode to get the Point from.")]
[Output("point", "The geometry of the INode.")]
Expand Down
3 changes: 1 addition & 2 deletions BHoM_Engine/Query/IsNumeric.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ namespace BH.Engine.Base
{
public static partial class Query
{
[PreviousVersion("6.1", "BH.Engine.Base.Query.IsNumeric(System.Type)")]
[Description("Determine whether a type is a numeric type.")]
[Input("type", "Type that we want to check if it is numeric type or not.")]
[Input("enumsAsNumbers", "(Optional, defaults to true) Whether `enum` types should be considered to be numeric.")]
Expand All @@ -56,4 +55,4 @@ public static bool IsNumeric(this Type type, bool enumsAsNumbers = true)
}
}
}
}
}
3 changes: 1 addition & 2 deletions BHoM_Engine/Query/IsNumericIntegralType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ namespace BH.Engine.Base
{
public static partial class Query
{
[PreviousVersion("6.1", "BH.Engine.Base.Query.IsNumericIntegralType(System.Type)")]
[Description("Determine whether a type is a integral numeric type (an integer)." +
"\nSee https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/integral-numeric-types for more information.")]
[Input("type", "Type that we want to check if it is numeric type or not.")]
Expand All @@ -55,4 +54,4 @@ public static bool IsNumericIntegralType(this Type type, bool enumsAsNumbers = t
}
}
}
}
}
1 change: 0 additions & 1 deletion Geometry_Engine/Modify/ProjectAlong.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public static Point ProjectAlong(this Point point, Line line, Vector vector, dou

/***************************************************/

[PreviousVersion("6.1", "BH.Engine.Geometry.Modify.Project(BH.oM.Geometry.Plane, BH.oM.Geometry.Plane, BH.oM.Geometry.Vector)")]
[PreviousInputNames("ToPlane", "toPlane")]
public static Plane ProjectAlong(this Plane plane, Plane toPlane, Vector vector)
{
Expand Down
1 change: 0 additions & 1 deletion Geometry_Engine/Query/ExternalEdges.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ public static List<ICurve> ExternalEdges(this PolySurface surface)
/**** Public Methods - Mesh ****/
/***************************************************/

[PreviousVersion("6.1", "BH.Engine.Geometry.Query.ExternalEdges(BH.oM.Geometry.Mesh)")]
[Description("Gets the external edge curves of a mesh as a set of lines. Extraction is done by finding all unique edges in the mesh.")]
[Input("mesh", "The mesh to extract external edge curves from.")]
[Input("filterByTopology", "If true, edges with unique topology are returned. If false, edges with unique geometry is returned. Toggle only renders different result for meshes with duplicate nodes.")]
Expand Down
1 change: 0 additions & 1 deletion Geometry_Engine/Query/IsVertical.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public static partial class Query
/**** Public Methods ****/
/***************************************************/

[PreviousVersion("6.1", "BH.Engine.Structure.Query.IsVertical(BH.oM.Geometry.Line)")]
[Description("Evaluates whether a line is vertical from its start- and endpoints projected 2d-distance")]
[Input("line", "The line to determine the verticality of")]
[Output("isVertical", "If it is vertical, as defined in the wiki: https://github.com/BHoM/documentation/wiki/BHoM-Structural-Conventions")]
Expand Down
1 change: 0 additions & 1 deletion Geometry_Engine/Query/Normal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public static partial class Query
/**** Public Methods - Surfaces ****/
/***************************************************/

[PreviousVersion("6.1", "BH.Engine.Geometry.Query.Normal(BH.oM.Geometry.Mesh, BH.oM.Geometry.Face, System.Double)")]
[Description("Returns a vector normal to a given face of the mesh.")]
[Input("face", "The Face to get the normal to.")]
[Input("mesh", "The Mesh containing the face to get the normal to.")]
Expand Down
2 changes: 0 additions & 2 deletions Reflection_Engine/Create/MethodBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public static partial class Create
/**** Public Methods ****/
/*******************************************/

[PreviousVersion("6.1", "BH.Engine.Serialiser.Create.MethodBase(System.Type, System.String, System.Collections.Generic.List<System.String>)")]
[Description("Extracts a method from the provided Type with the specified name and matching parameter types.")]
public static MethodBase MethodBase(Type type, string methodName, List<string> paramTypeNames)
{
Expand Down Expand Up @@ -152,7 +151,6 @@ public static MethodBase MethodBase(Type type, string methodName, List<string> p

/*******************************************/

[PreviousVersion("6.1", "BH.Engine.Serialiser.Create.MethodBase(System.Type, System.String, System.Collections.Generic.List<System.Type>)")]
[Description("Extracts a method from the provided Type with the specified name and matching parameter types.")]
public static MethodBase MethodBase(Type type, string methodName, List<Type> paramTypes)
{
Expand Down
1 change: 0 additions & 1 deletion Reflection_Engine/Query/GenericTypeConstraint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public static partial class Query
/**** Public Methods ****/
/*******************************************/

[PreviousVersion("6.1", "BH.Engine.Serialiser.Query.GenericTypeConstraint(System.Type)")]
[Description("Obtains the type constraint for the provided generic type.")]
[Input("type", "The generic type to obtain a type constraint for.")]
[Output("constraint", "The generic type constraint for the provided type.")]
Expand Down
1 change: 0 additions & 1 deletion Reflection_Engine/Query/ParametersWithConstraints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public static partial class Query
/**** Public Methods ****/
/*******************************************/

[PreviousVersion("6.1", "BH.Engine.Serialiser.Query.ParametersWithConstraints(System.Reflection.MethodBase)")]
[Description("Obtains the parameters of a method. Returns generic constraints if the method contains generic parameters.")]
[Input("method", "A method to obtain the parameters of. Generic Constraints will be taken into consideration.")]
[Output("parameters", "The parameters of the provided method.")]
Expand Down
1 change: 0 additions & 1 deletion Spatial_Engine/Query/Normal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public static partial class Query
/**** IElement2D ****/
/******************************************/

[PreviousVersion("6.1", "BH.Engine.Structure.Query.Normal(BH.oM.Structure.Elements.Panel)")]
[Description("Returns the normal to the IElement2D which is perpendicular to its plane and oriented according to the right hand rule in relation to the outline curve.")]
[Input("element2D", "The IElement2D to get the normal from.")]
[PreviousInputNames("element2D", "panel")]
Expand Down
1 change: 0 additions & 1 deletion Structure_Engine/Compute/IntegrateSection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public static partial class Compute
/**** Public Methods ****/
/***************************************************/

[PreviousVersion("6.1", "BH.Engine.Structure.Compute.IntegrateSection(System.Collections.Generic.List<BH.oM.Geometry.ICurve>, System.Double)")]
[Description("Calculates Section properties for a region on the XY-Plane. /n" +
"The resulting properties are oriented to the XY-Plane.")]
[Input("curves", "Non-intersecting edge curves that make up the section.")]
Expand Down
3 changes: 0 additions & 3 deletions Structure_Engine/Create/Elements/Panel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ public static Panel Panel(List<Edge> externalEdges, List<Opening> openings = nul

/***************************************************/

[PreviousVersion("6.1", "BH.Engine.Structure.Create.Panel(BH.oM.Geometry.ICurve, System.Collections.Generic.List<BH.oM.Geometry.ICurve>, BH.oM.Structure.SurfaceProperties.ISurfaceProperty, BH.oM.Geometry.Vector, System.String)")]
[Description("Creates a structural Panel from a closed curve defining the outline, and any number of closed curves defining openings.")]
[Input("outline", "A closed Curve defining the outline of the Panel. The ExternalEdges of the Panel will be the subparts of this curve, where each edge will corespond to one curve segment.")]
[Input("openings", "A collection of closed curves representing the openings of the Panel.")]
Expand All @@ -97,7 +96,6 @@ public static Panel Panel(ICurve outline, List<ICurve> openings = null, ISurface

/***************************************************/

[PreviousVersion("6.1", "BH.Engine.Structure.Create.Panel(System.Collections.Generic.List<BH.oM.Geometry.ICurve>, BH.oM.Structure.SurfaceProperties.ISurfaceProperty, BH.oM.Geometry.Vector, System.String)")]
[Description("Creates a list of Panels based on a collection of outline curves. \n" +
"Method will distribute the outlines such that the outermost curve will be assumed to be an external outline of a panel, and any curve contained in this outline will be assumed as an opening of this Panel. \n" +
"Any outline curve inside an opening will again be assumed to be the outline of a new Panel.")]
Expand Down Expand Up @@ -140,7 +138,6 @@ public static List<Panel> Panel(List<ICurve> outlines, ISurfaceProperty property

/***************************************************/

[PreviousVersion("6.1", "BH.Engine.Structure.Create.Panel(BH.oM.Geometry.PlanarSurface, BH.oM.Structure.SurfaceProperties.ISurfaceProperty, BH.oM.Geometry.Vector, System.String)")]
[Description("Creates a structural Panel from a PlanarSurface, creating external edges from the ExternalBoundary and openings from the InternalBoundaries of the PlanarSurface.")]
[Input("surface", "A planar surface used to define the geometry of the panel, i.e. the external edges and the openings.")]
[InputFromProperty("property")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public static partial class Create
/**** Public Methods ****/
/***************************************************/

[PreviousVersion("6.1", "BH.Engine.Structure.Create.AreaUniformalyDistributedLoad(BH.oM.Structure.Loads.Loadcase, BH.oM.Geometry.Vector, System.Collections.Generic.IEnumerable<BH.oM.Structure.Elements.IAreaElement>, BH.oM.Structure.Loads.LoadAxis, System.Boolean, System.String)")]
[Description("Creates an uniformly distributed load to be applied to area elements such as Panels and FEMeshes.")]
[InputFromProperty("loadcase")]
[InputFromProperty("pressure")]
Expand Down Expand Up @@ -70,7 +69,6 @@ public static AreaUniformlyDistributedLoad AreaUniformlyDistributedLoad(Loadcase
/**** Public Methods - ToBeRemoved ****/
/***************************************************/

[PreviousVersion("6.1", "BH.Engine.Structure.Create.AreaUniformalyDistributedLoad(BH.oM.Structure.Loads.Loadcase, BH.oM.Geometry.Vector, BH.oM.Base.BHoMGroup<BH.oM.Structure.Elements.IAreaElement>, BH.oM.Structure.Loads.LoadAxis, System.Boolean, System.String)")]
[ToBeRemoved("3.1", "Replaced with autogenerated Property assignement method")]
public static AreaUniformlyDistributedLoad AreaUniformlyDistributedLoad(Loadcase loadcase, Vector pressure, BHoMGroup<IAreaElement> group, LoadAxis axis = LoadAxis.Global, bool projected = false, string name = "")
{
Expand Down
1 change: 0 additions & 1 deletion Structure_Engine/Create/Loads/ContourLoad.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public static partial class Create
/**** Public Methods - ToBeRemoved ****/
/***************************************************/

[PreviousVersion("6.1", "BH.Engine.Adapters.Robot.Create.ContourLoad(BH.oM.Geometry.Polyline, BH.oM.Geometry.Vector, BH.oM.Structure.Loads.Loadcase, BH.oM.Structure.Loads.LoadAxis, System.Boolean, System.String)")]
[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 = "")
{
Expand Down
2 changes: 0 additions & 2 deletions Structure_Engine/Create/Loads/GeometricalLineLoad.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public static partial class Create
/**** Public Methods ****/
/***************************************************/

[PreviousVersion("6.1", "BH.Engine.Adapters.Robot.Create.GeometricalLineLoad(BH.oM.Geometry.Line, BH.oM.Structure.Loads.Loadcase, BH.oM.Geometry.Vector, System.String)")]
[Description("Creates a GeometricalLineLoad with a constant force across the length of the Line.")]
[InputFromProperty("location")]
[InputFromProperty("loadcase")]
Expand All @@ -62,7 +61,6 @@ public static GeometricalLineLoad GeometricalLineLoad(Line location, Loadcase lo
/**** Public Methods - ToBeRemoved ****/
/***************************************************/

[PreviousVersion("6.1", "BH.Engine.Adapters.Robot.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)")]
[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 = "")
{
Expand Down
2 changes: 0 additions & 2 deletions Structure_Engine/Create/Loads/PointLoad.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public static partial class Create
/**** Public Methods ****/
/***************************************************/

[PreviousVersion("6.1", "BH.Engine.Structure.Create.PointForce(BH.oM.Structure.Loads.Loadcase, BH.oM.Base.BHoMGroup<BH.oM.Structure.Elements.Node>, BH.oM.Geometry.Vector, BH.oM.Geometry.Vector, BH.oM.Structure.Loads.LoadAxis, System.String)")]
[Description("Creates a point load to be applied to Nodes.")]
[InputFromProperty("loadcase")]
[InputFromProperty("group", "Objects")]
Expand Down Expand Up @@ -71,7 +70,6 @@ public static PointLoad PointLoad(Loadcase loadcase, BHoMGroup<Node> group, Vect

/***************************************************/

[PreviousVersion("6.1", "BH.Engine.Structure.Create.PointForce(BH.oM.Structure.Loads.Loadcase, System.Collections.Generic.IEnumerable<BH.oM.Structure.Elements.Node>, BH.oM.Geometry.Vector, BH.oM.Geometry.Vector, BH.oM.Structure.Loads.LoadAxis, System.String)")]
[Description("Creates a point load to be applied to Nodes.")]
[InputFromProperty("loadcase")]
[Input("objects", "The collection of Nodes the load should be applied to.")]
Expand Down
2 changes: 0 additions & 2 deletions Structure_Engine/Query/DescriptionOrName.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ public static partial class Query
/**** Public Methods ****/
/***************************************************/

[PreviousVersion("6.1", "BH.Engine.Structure.Query.DescriptionOrName(BH.oM.Structure.SurfaceProperties.ISurfaceProperty)")]
[PreviousVersion("6.1", "BH.Engine.Structure.Query.DescriptionOrName(BH.oM.Structure.SectionProperties.ISectionProperty)")]
[Description("Gets the name from a IProperty. If null or empty, a default description name is provided instead.")]
[Input("property", "The IProperty go get the name or default description from.")]
[PreviousInputNames("property", "section")]
Expand Down
1 change: 0 additions & 1 deletion Structure_Engine/Query/Geometry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public static CompositeGeometry Geometry(this ConcreteSection section)

/***************************************************/

[PreviousVersion("6.1", "BH.Engine.Structure.Query.Geometry(BH.oM.Structure.SectionProperties.SteelSection)")]
[Description("Gets the geometry of a GeometricalSection as its profile outlines the global XY plane. Method required for automatic display in UI packages.")]
[Input("section", "GeometricalSection to get outline geometry from.")]
[Output("outlines", "The geometry of the GeometricalSection as its outline in the global XY plane.")]
Expand Down
1 change: 0 additions & 1 deletion Structure_Engine/Query/MassPerMetre.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ public static double MassPerMetre(this CableSection section)
/**** Public Methods - Interfaces ****/
/***************************************************/

[PreviousVersion("6.1", "BH.Engine.Structure.Query.MassPerMetre(BH.oM.Structure.SectionProperties.ISectionProperty)")]
[Description("Calculates the mass per length for the section, generally as its area mulitplied by the density. General dispatch method that calls the correct method based on type.")]
[Input("section", "The SectionProperty to calculate the mass per area for.")]
[Output("massPerLength", "The mass per length for the section.", typeof(MassPerUnitLength))]
Expand Down
6 changes: 0 additions & 6 deletions Structure_Engine/Structure_Engine.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
Expand All @@ -10,15 +9,12 @@
<RootNamespace>BH.Engine.Structure</RootNamespace>
<FileVersion>6.2.0.0</FileVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>..\Build\</OutputPath>
</PropertyGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="xcopy &quot;$(TargetDir)$(TargetFileName)&quot; &quot;C:\ProgramData\BHoM\Assemblies&quot; /Y" />
</Target>

<ItemGroup>
<ProjectReference Include="..\Analytical_Engine\Analytical_Engine.csproj" />
<ProjectReference Include="..\BHoM_Engine\BHoM_Engine.csproj" />
Expand All @@ -29,7 +25,6 @@
<ProjectReference Include="..\Reflection_Engine\Reflection_Engine.csproj" />
<ProjectReference Include="..\Spatial_Engine\Spatial_Engine.csproj" />
</ItemGroup>

<ItemGroup>
<Reference Include="Analytical_oM">
<HintPath>$(ProgramData)\BHoM\Assemblies\Analytical_oM.dll</HintPath>
Expand Down Expand Up @@ -82,5 +77,4 @@
<SpecificVersion>false</SpecificVersion>
</Reference>
</ItemGroup>

</Project>
Loading