public GsaFaceLoad Duplicate() { if (this == null) { return(null); } GsaFaceLoad dup = new GsaFaceLoad(); dup.m_faceload.AxisProperty = m_faceload.AxisProperty; dup.m_faceload.Case = m_faceload.Case; dup.m_faceload.Direction = m_faceload.Direction; dup.m_faceload.Elements = m_faceload.Elements.ToString(); dup.m_faceload.Name = m_faceload.Name.ToString(); dup.m_faceload.Type = m_faceload.Type; if (m_faceload.Type == FaceLoadType.CONSTANT) { dup.m_faceload.IsProjected = m_faceload.IsProjected; dup.m_faceload.SetValue(0, m_faceload.Value(0)); } if (m_faceload.Type == FaceLoadType.GENERAL) { dup.m_faceload.IsProjected = m_faceload.IsProjected; dup.m_faceload.SetValue(0, m_faceload.Value(0)); dup.m_faceload.SetValue(1, m_faceload.Value(1)); dup.m_faceload.SetValue(2, m_faceload.Value(2)); dup.m_faceload.SetValue(3, m_faceload.Value(3)); } if (m_faceload.Type == FaceLoadType.POINT) { dup.m_faceload.IsProjected = m_faceload.IsProjected; dup.m_faceload.SetValue(0, m_faceload.Value(0)); dup.m_faceload.Position = m_faceload.Position; // //note Vector2 currently only get in GsaAPI // duplicate Position.X and Position.Y when fixed } return(dup); }
public GsaLoad(GsaFaceLoad faceload) { FaceLoad = faceload; LoadType = LoadTypes.Face; }