Пример #1
0
        public GsaBeamLoad Duplicate()
        {
            if (this == null)
            {
                return(null);
            }
            GsaBeamLoad dup = new GsaBeamLoad();

            dup.m_beamload.AxisProperty = m_beamload.AxisProperty;
            dup.m_beamload.Case         = m_beamload.Case;
            dup.m_beamload.Direction    = m_beamload.Direction;
            dup.m_beamload.Elements     = m_beamload.Elements.ToString();
            dup.m_beamload.Name         = m_beamload.Name.ToString();
            dup.m_beamload.IsProjected  = m_beamload.IsProjected;
            dup.m_beamload.Type         = m_beamload.Type;
            if (m_beamload.Type == BeamLoadType.POINT)
            {
                dup.m_beamload.SetPosition(0, m_beamload.Position(0));
                dup.m_beamload.SetValue(0, m_beamload.Value(0));
            }
            if (m_beamload.Type == BeamLoadType.UNIFORM)
            {
                dup.m_beamload.SetValue(0, m_beamload.Value(0));
            }
            if (m_beamload.Type == BeamLoadType.LINEAR)
            {
                dup.m_beamload.SetValue(0, m_beamload.Value(0));
                dup.m_beamload.SetValue(1, m_beamload.Value(1));
            }
            if (m_beamload.Type == BeamLoadType.PATCH)
            {
                dup.m_beamload.SetPosition(0, m_beamload.Position(0));
                dup.m_beamload.SetPosition(1, m_beamload.Position(1));
                dup.m_beamload.SetValue(0, m_beamload.Value(0));
                dup.m_beamload.SetValue(1, m_beamload.Value(1));
            }
            if (m_beamload.Type == BeamLoadType.TRILINEAR)
            {
                dup.m_beamload.SetPosition(0, m_beamload.Position(0));
                dup.m_beamload.SetPosition(1, m_beamload.Position(1));
                dup.m_beamload.SetValue(0, m_beamload.Value(0));
                dup.m_beamload.SetValue(1, m_beamload.Value(1));
            }
            return(dup);
        }
Пример #2
0
 public GsaLoad(GsaBeamLoad beamload)
 {
     BeamLoad = beamload;
     LoadType = LoadTypes.Beam;
 }