Skip to content

Commit

Permalink
Update warning messages
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjamesnugent committed Sep 13, 2023
1 parent 50b7d66 commit 14c70f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions Lusas_Adapter/CRUD/Create/Loads/BarDistributedLoad.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ private List<IFLoadingBeamDistributed> CreateBarDistributedLoad(
IFAssignment lusasAssignment = m_LusasApplication.assignment();
IFLoadcase assignedLoadcase = (IFLoadcase)d_LusasData.getLoadset(barDistributedLoad.Loadcase.AdapterId<int>(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<double> valuesAtA = new List<double> {
barDistributedLoad.ForceAtStart.X, barDistributedLoad.ForceAtStart.Y,barDistributedLoad.ForceAtStart.Z,
Expand Down
10 changes: 5 additions & 5 deletions Lusas_Adapter/Convert/ToBHoM/Loads/ToBarDistributedLoad.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;

Expand Down

0 comments on commit 14c70f3

Please sign in to comment.