Files
wg_cpso/CPSO/Commands/0050_Model/CSetNewModelProperties.cs

50 lines
1.7 KiB
C#
Raw Permalink Normal View History

2026-03-25 18:20:24 +08:00
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 CSetNewModelProperties : PreprocessCommand
{
// Variables
private ModelSpaceEnum _modelSpace;
private UnitSystemType _unitSystemType;
// Properties
public ModelSpaceEnum ModelSpace { get { return _modelSpace; } }
public UnitSystemType UnitSystemType { get { return _unitSystemType; } }
// Constructor
public CSetNewModelProperties(ModelSpaceEnum modelSpace, UnitSystemType unitSystemType)
: base("Set new model properties")
{
_modelSpace = modelSpace;
_unitSystemType = unitSystemType;
}
// Methods
public override bool Execute(Controller receiver)
{
receiver.SetNewModelProperties(_modelSpace, _unitSystemType);
return true;
}
public override string GetCommandString()
{
return base.GetCommandString() + "Model space: " + _modelSpace.GetDisplayedName()
+ ", Unit system: " + _unitSystemType.GetDescription();
}
}
}