Exemplo n.º 1
0
 /// <summary>
 /// This function adds or modifies one load case or response combination in the list of cases included in the load combination specified by the Name item.
 /// </summary>
 /// <param name="nameLoadCombo">The name of an existing load combination.</param>
 /// <param name="caseComboType">This parameter indicates whether the item is an analysis case (LoadCase) or a load combination (LoadCombo).</param>
 /// <param name="caseComboNames">This is an array of the names of the load cases or load combinations included in the load combination specified by the Name item.</param>
 /// <param name="scaleFactor">The scale factor multiplying the case or combination indicated by the caseComboNames item.</param>
 /// <exception cref="CSiException">API_DEFAULT_ERROR_CODE</exception>
 public void SetCaseList(string nameLoadCombo,
                         eCaseComboType caseComboType,
                         string caseComboNames,
                         double scaleFactor)
 {
     CSiProgram.eCNameType csiCaseComboType = EnumLibrary.Convert <eCaseComboType, CSiProgram.eCNameType>(caseComboType);
     _callCode = _sapModel.RespCombo.SetCaseList(nameLoadCombo, ref csiCaseComboType, caseComboNames, scaleFactor);
     if (throwCurrentApiException(_callCode))
     {
         throw new CSiException(API_DEFAULT_ERROR_CODE);
     }
 }
Exemplo n.º 2
0
        // == Case List ==

        /// <summary>
        /// This function returns all load cases and response combinations included in the load combination specified by the Name item.
        /// </summary>
        /// <param name="nameLoadCombo">The name of an existing load combination.</param>
        /// <param name="numberLoadCombos">The total number of load cases and load combinations included in the load combination specified by the Name item.</param>
        /// <param name="caseComboType">This parameter indicates whether the item is an analysis case (LoadCase) or a load combination (LoadCombo).</param>
        /// <param name="caseComboNames">This is an array of the names of the load cases or load combinations included in the load combination specified by the Name item.</param>
        /// <param name="scaleFactor">The scale factor multiplying the case or combination indicated by the caseComboNames item.</param>
        /// <exception cref="CSiException">API_DEFAULT_ERROR_CODE</exception>
        public void GetCaseList(string nameLoadCombo,
                                ref int numberLoadCombos,
                                ref eCaseComboType[] caseComboType,
                                ref string[] caseComboNames,
                                ref double[] scaleFactor)
        {
            CSiProgram.eCNameType[] csiCaseComboType = new CSiProgram.eCNameType[0];
            _callCode = _sapModel.RespCombo.GetCaseList(nameLoadCombo, ref numberLoadCombos, ref csiCaseComboType, ref caseComboNames, ref scaleFactor);
            if (throwCurrentApiException(_callCode))
            {
                throw new CSiException(API_DEFAULT_ERROR_CODE);
            }

            caseComboType = new eCaseComboType[csiCaseComboType.Length + 1];
            for (int i = 0; i < csiCaseComboType.Length; i++)
            {
                caseComboType[i] = EnumLibrary.Convert(csiCaseComboType[i], caseComboType[i]);
            }
        }
Exemplo n.º 3
0
 internal static eCaseComboType FromCSi(CSiProgram.eCNameType enumValue)
 {
     return((eCaseComboType)enumValue);
 }