コード例 #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);
     }
 }
コード例 #2
0
 /// <summary>
 /// This function deletes one load case or load combination from the list of cases included in the specified load combination.
 /// </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="caseComboName">The name of the load case or load combination to be deleted from the specified combination.</param>
 /// <exception cref="CSiException">API_DEFAULT_ERROR_CODE</exception>
 public void DeleteCase(string nameLoadCombo,
                        eCaseComboType caseComboType,
                        string caseComboName)
 {
     _callCode = _sapModel.RespCombo.DeleteCase(nameLoadCombo,
                                                EnumLibrary.Convert <eCaseComboType, CSiProgram.eCNameType>(caseComboType),
                                                caseComboName);
     if (throwCurrentApiException(_callCode))
     {
         throw new CSiException(API_DEFAULT_ERROR_CODE);
     }
 }
コード例 #3
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]);
            }
        }
コード例 #4
0
 public void SetCaseList(string nameLoadCombo,
                         eCaseComboType caseComboType,
                         string caseComboNames,
                         double scaleFactor)
 {
 }
コード例 #5
0
 public void DeleteCase(string nameLoadCombo,
                        eCaseComboType caseComboType,
                        string caseComboName)
 {
 }
コード例 #6
0
 // eLoadCaseType
 internal static CSiProgram.eCNameType ToCSi(eCaseComboType enumValue)
 {
     return((CSiProgram.eCNameType)enumValue);
 }