Files
wg_cpso/CPSO/Commands/0000_File/CExportToCalculix.cs
2026-03-25 18:20:24 +08:00

37 lines
869 B
C#

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;
}
}
}