From 5620005a0dcaba06297e9cfd6af7799e8f1253e8 Mon Sep 17 00:00:00 2001 From: MP Date: Mon, 2 Sep 2024 14:36:06 +0200 Subject: [PATCH] :bug: applydesignchanges new CmdUser(CmdUserModule.RESMODE) does not need to be appended --- FemDesign.Core/FemDesignConnection.cs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/FemDesign.Core/FemDesignConnection.cs b/FemDesign.Core/FemDesignConnection.cs index 6e1ea00f..3d93cc50 100644 --- a/FemDesign.Core/FemDesignConnection.cs +++ b/FemDesign.Core/FemDesignConnection.cs @@ -498,7 +498,6 @@ public void ApplyDesignChanges() var script = new FdScript( logfile, - new CmdUser(CmdUserModule.RESMODE), new CmdApplyDesignChanges() ); @@ -750,10 +749,7 @@ public List GetResultsOnPoints(List resultPoints, Results. listGenCommands.Add(new CmdListGen(bscPaths[i], csvPaths[i])); // FdScript commands - List scriptCommands = new List - { - new CmdUser(CmdUserModule.RESMODE), - }; + List scriptCommands = new List(); scriptCommands.AddRange(resultPoints); scriptCommands.AddRange(listGenCommands); @@ -1180,10 +1176,7 @@ private static void _deleteFolderIfNotUsed(string folderPath) private void _listResultsByFdScript(string scriptFileName, List bscPaths, List csvPaths, List elements = null) { // FdScript commands - List scriptCommands = new List - { - new CmdUser(CmdUserModule.RESMODE) - }; + List scriptCommands = new List(); for (int i = 0; i < bscPaths.Count; i++) scriptCommands.Add(new CmdListGen(bscPaths[i], csvPaths[i], elements));