From ee605dd69242d133ca2c362ceb89a709968d6944 Mon Sep 17 00:00:00 2001 From: BHoMBot Date: Mon, 25 Sep 2023 14:31:56 +0100 Subject: [PATCH 1/3] Upgrade AssemblyFileVersion to 7.0.0.0 --- Robot_Adapter/Properties/AssemblyInfo.cs | 4 ++-- Robot_Engine/Properties/AssemblyInfo.cs | 4 ++-- Robot_oM/Properties/AssemblyInfo.cs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Robot_Adapter/Properties/AssemblyInfo.cs b/Robot_Adapter/Properties/AssemblyInfo.cs index 0d8c9ec0..71f3a48f 100644 --- a/Robot_Adapter/Properties/AssemblyInfo.cs +++ b/Robot_Adapter/Properties/AssemblyInfo.cs @@ -53,8 +53,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("6.0.0.0")] -[assembly: AssemblyFileVersion("6.3.0.0")] +[assembly: AssemblyVersion("7.0.0.0")] +[assembly: AssemblyFileVersion("7.0.0.0")] diff --git a/Robot_Engine/Properties/AssemblyInfo.cs b/Robot_Engine/Properties/AssemblyInfo.cs index 84f7aba8..00a5edff 100644 --- a/Robot_Engine/Properties/AssemblyInfo.cs +++ b/Robot_Engine/Properties/AssemblyInfo.cs @@ -54,8 +54,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("6.0.0.0")] -[assembly: AssemblyFileVersion("6.3.0.0")] +[assembly: AssemblyVersion("7.0.0.0")] +[assembly: AssemblyFileVersion("7.0.0.0")] diff --git a/Robot_oM/Properties/AssemblyInfo.cs b/Robot_oM/Properties/AssemblyInfo.cs index dcaa2bb8..c93f775f 100644 --- a/Robot_oM/Properties/AssemblyInfo.cs +++ b/Robot_oM/Properties/AssemblyInfo.cs @@ -54,8 +54,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("6.0.0.0")] -[assembly: AssemblyFileVersion("6.3.0.0")] +[assembly: AssemblyVersion("7.0.0.0")] +[assembly: AssemblyFileVersion("7.0.0.0")] From 556ff106651a0395c746a9b537ef61ae47bc51b5 Mon Sep 17 00:00:00 2001 From: BHoMBot Date: Fri, 3 Nov 2023 14:34:50 +0000 Subject: [PATCH 2/3] Update readme links and references --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 602a369d..91465f49 100644 --- a/README.md +++ b/README.md @@ -29,12 +29,12 @@ Grab the [latest installer](https://bhom.xyz/) and a selection of [sample script ## Getting Started for Developers 🤖 If you want to build the BHoM and the Toolkits from source, it's hopefully easy! 😄 -Do take a look at our specific wiki pages here: [Getting Started for Developers](https://github.com/BHoM/documentation/wiki/Getting-started-for-developers) +Do take a look at our specific wiki pages here: [Getting Started for Developers](https://bhom.xyz/documentation/Contributing/Getting-started-for-developers/) ## Want to Contribute? ## -BHoM is an open-source project and would be nothing without its community. Take a look at our contributing guidelines and tips [here](https://github.com/BHoM/BHoM/blob/master/CONTRIBUTING.md). +BHoM is an open-source project and would be nothing without its community. Take a look at our contributing guidelines and tips [here](https://github.com/BHoM/BHoM/blob/main/CONTRIBUTING.md). ## Licence ## @@ -42,5 +42,5 @@ BHoM is an open-source project and would be nothing without its community. Take BHoM is free software licenced under GNU Lesser General Public Licence - [https://www.gnu.org/licenses/lgpl-3.0.html](https://www.gnu.org/licenses/lgpl-3.0.html) Each contributor holds copyright over their respective contributions. The project versioning (Git) records all such contribution source information. -See [LICENSE](https://github.com/BHoM/BHoM/blob/master/LICENSE) and [COPYRIGHT_HEADER](https://github.com/BHoM/BHoM/blob/master/COPYRIGHT_HEADER.txt). +See [LICENSE](https://github.com/BHoM/BHoM/blob/main/LICENSE) and [COPYRIGHT_HEADER](https://github.com/BHoM/BHoM/blob/main/COPYRIGHT_HEADER.txt). From 82c2db49f980f7c66fa735cfb7f0f403d0faabc2 Mon Sep 17 00:00:00 2001 From: Peter Nugent Date: Tue, 19 Dec 2023 12:41:08 +0000 Subject: [PATCH 3/3] Added error message when trying to push loadcase with a negatve or zero number assigned --- Robot_Adapter/CRUD/Create/Loads/Loadcase.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Robot_Adapter/CRUD/Create/Loads/Loadcase.cs b/Robot_Adapter/CRUD/Create/Loads/Loadcase.cs index b2a70742..bd5db7b0 100644 --- a/Robot_Adapter/CRUD/Create/Loads/Loadcase.cs +++ b/Robot_Adapter/CRUD/Create/Loads/Loadcase.cs @@ -48,6 +48,14 @@ private bool CreateCollection(IEnumerable loadCase) int subNature; IRobotCaseNature rNature = Convert.ToRobotLoadcaseNature(caseList[i], out subNature); + + // Check if any loadcases havea zero + if(caseList.Any(lc => lc.Number == 0 || lc.Number < 1)) + { + Compute.RecordError("One or more Loadcases have a number zero (or negative number) assigned and cannot be pushed."); + return false; + } + m_RobotApplication.Project.Structure.Cases.CreateSimple(caseList[i].Number, caseList[i].Name, rNature, IRobotCaseAnalizeType.I_CAT_STATIC_LINEAR); IRobotSimpleCase sCase = caseServer.Get(caseList[i].Number) as IRobotSimpleCase;