Exemple #1
0
 public Bsc(ListProc resultType, string bscPath, FemDesign.Results.UnitResults unitResult)
 {
     if (Path.GetExtension(bscPath) != ".bsc")
     {
         throw new ArgumentException($"File path must be '.bsc' but got '{bscPath}'");
     }
     BscPath        = Path.GetFullPath(bscPath);
     Cwd            = Path.GetDirectoryName(BscPath);
     DocTable       = new DocTable(resultType, unitResult);
     FdScriptHeader = new FdScriptHeader("Generated script.", Path.Combine(Cwd, "logfile.log"));
     CmdEndSession  = new CmdEndSession();
     SerializeBsc();
 }
Exemple #2
0
 /// <summary>
 /// CmdDocTable constructor
 /// </summary>
 /// <param name="docTable">DocTable</param>
 public CmdDocTable(DocTable docTable)
 {
     this.DocTable = docTable;
 }