diff --git a/Lusas_Adapter/CRUD/Create/Loads/BarDistributedLoad.cs b/Lusas_Adapter/CRUD/Create/Loads/BarDistributedLoad.cs index 3a86ce0e..5d031f43 100644 --- a/Lusas_Adapter/CRUD/Create/Loads/BarDistributedLoad.cs +++ b/Lusas_Adapter/CRUD/Create/Loads/BarDistributedLoad.cs @@ -52,9 +52,8 @@ private List CreateBarDistributedLoad( IFAssignment lusasAssignment = m_LusasApplication.assignment(); IFLoadcase assignedLoadcase = (IFLoadcase)d_LusasData.getLoadset(barDistributedLoad.Loadcase.AdapterId(typeof(LusasId))); - Engine.Base.Compute.RecordWarning( - barDistributedLoad.GetType().ToString() + " uses parametric distances in the Lusas_Toolkit" - ); + if(!barDistributedLoad.RelativePositions) + Engine.Base.Compute.RecordWarning(barDistributedLoad.GetType().ToString() + " uses parametric distances in the Lusas_Toolkit"); List valuesAtA = new List { barDistributedLoad.ForceAtStart.X, barDistributedLoad.ForceAtStart.Y,barDistributedLoad.ForceAtStart.Z, diff --git a/Lusas_Adapter/Convert/ToBHoM/Loads/ToBarDistributedLoad.cs b/Lusas_Adapter/Convert/ToBHoM/Loads/ToBarDistributedLoad.cs index 3d79027a..80a1dada 100644 --- a/Lusas_Adapter/Convert/ToBHoM/Loads/ToBarDistributedLoad.cs +++ b/Lusas_Adapter/Convert/ToBHoM/Loads/ToBarDistributedLoad.cs @@ -84,11 +84,6 @@ public static BarVaryingDistributedLoad ToBarDistributedLoad(IFLoading lusasBarD BarVaryingDistributedLoad barVarDistributedLoad = null; -#if Debug17 || Release17 || Debug18 || Release18 || Debug19 || Release19 - Engine.Base.Compute.RecordWarning("The " + barVarDistributedLoad.GetType().ToString() + " will have load axis set to Global and projected loads set" + - "to false. This bug is fixed in Lusas v19.1 and above."); -#endif - barVarDistributedLoad = Engine.Structure.Create.BarVaryingDistributedLoad( loadcase, assignedBars, @@ -103,6 +98,11 @@ public static BarVaryingDistributedLoad ToBarDistributedLoad(IFLoading lusasBarD projected, GetName(lusasBarDistributedLoad)); +#if Debug17 || Release17 || Debug18 || Release18 || Debug19 || Release19 + Engine.Base.Compute.RecordWarning("The " + barVarDistributedLoad.GetType().ToString() + " will have load axis set to Global and projected loads set" + + " to false. This bug is fixed in Lusas v19.1 and above."); +#endif + if (barVarDistributedLoad == null) return null;