Files
wg_cpso/CPSO/Forms/42_Section/ViewSolidSection.cs

49 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 System.ComponentModel;
using CaeGlobals;
using DynamicTypeDescriptor;
namespace CPSO
{
[Serializable]
public class ViewSolidSection : ViewSection
{
// Variables
private CaeModel.SolidSection _solidSection;
// Properties
[Category("Data")]
[OrderedDisplayName(6, 10, "Thickness")]
[Description("Set the thickness for the 2D plane strain/stress elements. " +
"For the mixed axisymmetric model the thickness of the plane stress elements must be " +
"defined for an angle of 360°.")]
[TypeConverter(typeof(EquationLengthConverter))]
public EquationString Thickness
{
get { return _solidSection.Thickness.Equation; }
set { _solidSection.Thickness.Equation = value; }
}
// Constructors
public ViewSolidSection(CaeModel.SolidSection solidSection)
{
_solidSection = solidSection;
SetBase(_solidSection);
//
DynamicCustomTypeDescriptor.GetProperty(nameof(Thickness)).SetIsBrowsable(solidSection.TwoD);
}
// Methods
}
}