using CaeGlobals; using System; #pragma warning disable IDE0130 namespace CPSO.Commands { [Serializable] class CExportToCalculix : PreprocessCommand, IExportFileCommand { // Variables private string _fileName; // Properties public string FileName { get => _fileName; set => _fileName = value; } // Constructor public CExportToCalculix(string fileName) :base("Export model to Calculix") { _fileName = Tools.GetLocalPath(fileName); } // Methods public override bool Execute(Controller receiver) { receiver.ExportToCalculix(Tools.GetGlobalPath(_fileName)); return true; } public override string GetCommandString() { return base.GetCommandString() + _fileName; } } }