From 0752fdf9c34143b91d5e3036295fc2faf9d58b9e Mon Sep 17 00:00:00 2001 From: Peter Nugent Date: Wed, 3 Apr 2024 09:12:15 +0100 Subject: [PATCH] Fixes bug whereby pulling a MeshSettings1D with div = 1 returns an error --- Lusas_Adapter/Convert/ToBHoM/Properties/ToMeshSettings1D.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lusas_Adapter/Convert/ToBHoM/Properties/ToMeshSettings1D.cs b/Lusas_Adapter/Convert/ToBHoM/Properties/ToMeshSettings1D.cs index 3ebe0645..d022500a 100644 --- a/Lusas_Adapter/Convert/ToBHoM/Properties/ToMeshSettings1D.cs +++ b/Lusas_Adapter/Convert/ToBHoM/Properties/ToMeshSettings1D.cs @@ -59,7 +59,7 @@ public static MeshSettings1D ToMeshSettings1D(this IFAttribute lusasAttrbute) else if (meshType == 1) { splitMethod = Split1D.Divisions; - object[] ratios = lusasMeshLine.getValue("ratio"); + object[] ratios = lusasMeshLine.getMeshDivisions(0); value = ratios.Count(); if (value == 0) value = 4;