public void ExportSimulationToCppCode(IMoBiSimulation simulation)
        {
            var exportFolder = _interactionTask.AskForFolder(AppConstants.Dialog.ExportSimulationToCppCode, Constants.DirectoryKey.SIM_MODEL_XML);

            if (string.IsNullOrEmpty(exportFolder))
            {
                return;
            }
            _simModelExporter.ExportCppCode(simulation, exportFolder, FormulaExportMode.Formula);
        }
Exemplo n.º 2
0
 public Task ExportSimulationToCppAsync(Simulation simulation, string outputFolder)
 {
     _lazyLoadTask.Load(simulation);
     return(Task.Run(() => _simModelExporter.ExportCppCode(_coreSimulationMapper.MapFrom(simulation, shouldCloneModel: false), outputFolder, FormulaExportMode.Formula)));
 }