static void CompileFcToQd(string sourcePath) { QDeterminant = new QDet(); var FCconverter = Manufactory.CreateFlowChartConverter(ConverterTypes.JSON); FCconverter.ParseDocument(sourcePath); var actionList = new AList(FCconverter.GetBlocks(), FCconverter.GetLinks(), Opertaions); QDeterminant = actionList.getqdet(); var result = new StringBuilder(""); if (QDeterminant.QDeterminant.Count > 0) { result.Append("{"); foreach (var qterm in QDeterminant.QDeterminant) { result.Append("("); if (!String.IsNullOrEmpty(qterm.Logical)) { result.Append(qterm.Logical).Append(","); } result.Append(qterm.Definitive).Append(");"); } result.Remove(result.Length - 1, 1).Append("}"); } Console.WriteLine("Save QD"); File.WriteAllText(Path.GetDirectoryName(sourcePath)+@"\Qdeterminant.qd",result.ToString()); }