Beispiel #1
0
 /// <summary>
 /// Returns the hysteretic damping type for the load case.
 /// </summary>
 /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
 public void FillDampingType()
 {
     if (_app == null)
     {
         return;
     }
     _dampingType = _app.GetDampingType(CaseName);
 }
        /// <summary>
        /// This function retrieves the hysteretic damping type for the specified load case.
        /// </summary>
        /// <param name="name">The name of an existing load case.</param>
        /// <param name="dampingType">The modal damping type for the load case.</param>
        /// <exception cref="CSiException">API_DEFAULT_ERROR_CODE</exception>
        public void GetDampingType(string name,
                                   ref eDampingType dampingType)
        {
            int csiDampingType = 0;

            _callCode = _sapModel.LoadCases.ModHistNonlinear.GetDampType(name, ref csiDampingType);
            if (throwCurrentApiException(_callCode))
            {
                throw new CSiException(API_DEFAULT_ERROR_CODE);
            }

            dampingType = (eDampingType)csiDampingType;
        }
        /// <summary>
        /// This function retrieves the hysteretic damping type for the specified load case.
        /// </summary>
        /// <param name="name">The name of an existing load case.</param>
        /// <param name="dampingType">The modal damping type for the load case.</param>
        /// <exception cref="CSiException"></exception>
        public void GetDampingType(string name,
                                   ref eDampingType dampingType)
        {
            int csiDampingType = 0;

            _callCode = _sapModel.LoadCases.ResponseSpectrum.GetDampType(name, ref csiDampingType);
            if (throwCurrentApiException(_callCode))
            {
                throw new CSiException();
            }

            dampingType = (eDampingType)csiDampingType;
        }
Beispiel #4
0
 public void GetDampingType(string name,
                            ref eDampingType dampingType)
 {
 }