Skip to content

Commit

Permalink
Making sure cases and combinations get adapter Ids
Browse files Browse the repository at this point in the history
  • Loading branch information
IsakNaslundBh committed Dec 1, 2020
1 parent aa36d70 commit 8124656
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GSA_Adapter/Convert/ToGsa/Loads/LoadCombination.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
using System.Collections.Generic;
using BH.oM.Adapters.GSA;
using BH.Engine.Base;
using BH.Engine.Adapter;

namespace BH.Adapter.GSA
{
Expand All @@ -46,6 +47,8 @@ public static List<string> ToGsaString(this LoadCombination loadComb)
TaskTypeAndStage(loadComb, out type, out stage);
gsaStrings.Add(AnalysisTask(combNo, loadComb.Name, type, stage, combNo));

loadComb.SetAdapterId(typeof(BH.oM.Adapters.GSA.GSAId), "A" + loadComb.Number);

return gsaStrings;
}

Expand Down
3 changes: 3 additions & 0 deletions GSA_Adapter/Convert/ToGsa/Loads/Loadcase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@


using BH.oM.Structure.Loads;
using BH.Engine.Adapter;


namespace BH.Adapter.GSA
Expand All @@ -41,6 +42,8 @@ static public string ToGsaString(this Loadcase loadCase)
string command = "LOAD_TITLE.1";
string bridge = "BRIDGE_NO";

loadCase.SetAdapterId(typeof(BH.oM.Adapters.GSA.GSAId), loadCase.Number);

str = command + "," + loadCase.Number + "," + title + "," + type + "," + bridge;
return str;
}
Expand Down

0 comments on commit 8124656

Please sign in to comment.