Skip to content

Commit

Permalink
🐛 applydesignchanges
Browse files Browse the repository at this point in the history
new CmdUser(CmdUserModule.RESMODE) does not need to be appended
  • Loading branch information
Marco-Pellegrino committed Sep 2, 2024
1 parent a6fbe7e commit 5620005
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions FemDesign.Core/FemDesignConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,6 @@ public void ApplyDesignChanges()

var script = new FdScript(
logfile,
new CmdUser(CmdUserModule.RESMODE),
new CmdApplyDesignChanges()
);

Expand Down Expand Up @@ -750,10 +749,7 @@ public List<T> GetResultsOnPoints<T>(List<CmdResultPoint> resultPoints, Results.
listGenCommands.Add(new CmdListGen(bscPaths[i], csvPaths[i]));

// FdScript commands
List<CmdCommand> scriptCommands = new List<CmdCommand>
{
new CmdUser(CmdUserModule.RESMODE),
};
List<CmdCommand> scriptCommands = new List<CmdCommand>();
scriptCommands.AddRange(resultPoints);
scriptCommands.AddRange(listGenCommands);

Expand Down Expand Up @@ -1180,10 +1176,7 @@ private static void _deleteFolderIfNotUsed(string folderPath)
private void _listResultsByFdScript(string scriptFileName, List<string> bscPaths, List<string> csvPaths, List<FemDesign.GenericClasses.IStructureElement> elements = null)
{
// FdScript commands
List<CmdCommand> scriptCommands = new List<CmdCommand>
{
new CmdUser(CmdUserModule.RESMODE)
};
List<CmdCommand> scriptCommands = new List<CmdCommand>();
for (int i = 0; i < bscPaths.Count; i++)
scriptCommands.Add(new CmdListGen(bscPaths[i], csvPaths[i], elements));

Expand Down

0 comments on commit 5620005

Please sign in to comment.