/// <summary>
 /// Returns the motion type for the specified load case.
 /// </summary>
 /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
 public void FillMotionType()
 {
     if (_timeHistoryModalLinear == null)
     {
         return;
     }
     MotionType = _timeHistoryModalLinear.GetMotionType(Name);
 }
예제 #2
0
 /// <summary>
 /// This function sets the motion type for the specified analysis case.
 /// </summary>
 /// <param name="name">The name of an existing linear modal history analysis case.</param>
 /// <param name="motionType">The time history motion type.</param>
 /// <exception cref="CSiException">API_DEFAULT_ERROR_CODE</exception>
 public void SetMotionType(string name,
                           eMotionType motionType)
 {
     _callCode = _sapModel.LoadCases.ModHistLinear.SetMotionType(name, (int)motionType);
     if (throwCurrentApiException(_callCode))
     {
         throw new CSiException(API_DEFAULT_ERROR_CODE);
     }
 }
예제 #3
0
        /// <summary>
        /// This function retrieves the motion type for the specified load case.
        /// </summary>
        /// <param name="name">The name of an existing linear modal history analysis case.</param>
        /// <param name="motionType">The time history motion type.</param>
        /// <exception cref="CSiException">API_DEFAULT_ERROR_CODE</exception>
        public void GetMotionType(string name,
                                  ref eMotionType motionType)
        {
            int csiMotionType = 0;

            _callCode = _sapModel.LoadCases.ModHistLinear.GetMotionType(name, ref csiMotionType);
            if (throwCurrentApiException(_callCode))
            {
                throw new CSiException(API_DEFAULT_ERROR_CODE);
            }

            motionType = (eMotionType)csiMotionType;
        }
 /// <summary>
 /// Sets the motion type for the specified analysis case.
 /// </summary>
 /// <param name="motionType">The time history motion type.</param>
 /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
 public void SetMotionType(eMotionType motionType)
 {
     _timeHistoryModalLinear?.SetMotionType(Name, motionType);
     MotionType = motionType;
 }
 public void SetMotionType(string name,
                           eMotionType motionType)
 {
 }
 public void GetMotionType(string name,
                           ref eMotionType motionType)
 {
 }