45 lines
1.4 KiB
C#
45 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using CPSO;
|
|
using CaeModel;
|
|
using CaeMesh;
|
|
using CaeGlobals;
|
|
|
|
|
|
namespace CPSO.Commands
|
|
{
|
|
[Serializable]
|
|
class CExportToAbaqus : PreprocessCommand, IExportFileCommand
|
|
{
|
|
// Variables
|
|
private string _fileName;
|
|
|
|
|
|
// Properties
|
|
public string FileName { get { return _fileName; } set { _fileName = value; } }
|
|
|
|
|
|
// Constructor
|
|
public CExportToAbaqus(string fileName)
|
|
:base("Export model to Abaqus")
|
|
{
|
|
_fileName = Tools.GetLocalPath(fileName);
|
|
}
|
|
|
|
|
|
// Methods
|
|
public override bool Execute(Controller receiver)
|
|
{
|
|
receiver.ExportToAbaqus(Tools.GetGlobalPath(_fileName));
|
|
return true;
|
|
}
|
|
public override string GetCommandString()
|
|
{
|
|
return base.GetCommandString() + _fileName;
|
|
}
|
|
}
|
|
}
|