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(); }
/// <summary> /// CmdDocTable constructor /// </summary> /// <param name="docTable">DocTable</param> public CmdDocTable(DocTable docTable) { this.DocTable = docTable; }