/// <inheritdoc /> /// <summary> /// Returns the case type, design type, and auto flag for the specified load case. /// </summary> /// <param name="nameLoadCase">The name of an existing load case.</param> /// <param name="loadCaseType">Load case type corresponding to the name provided.</param> /// <param name="loadCaseSubType">Load case sub-type corresponding to the name provided.</param> /// <param name="designType">Load case design type corresponding to the name provided.</param> /// <param name="designTypeOption">Load case type corresponding to the name provided.</param> /// <param name="autoCreatedCase">This is a value indicating if the load case has been automatically created.</param> /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception> public void GetCaseTypes(string nameLoadCase, out eLoadCaseType loadCaseType, out int loadCaseSubType, out eLoadPatternType designType, out eSpecificationSource designTypeOption, out eAutoCreatedCase autoCreatedCase) { loadCaseType = 0; loadCaseSubType = 0; designType = 0; CSiProgram.eLoadCaseType csiCaseType = CSiProgram.eLoadCaseType.Modal; CSiProgram.eLoadPatternType csiPatternType = CSiProgram.eLoadPatternType.Dead; int csiDesignTypeOption = 0; int csiAutoCreatedCase = 0; _callCode = _sapModel.LoadCases.GetTypeOAPI_1(nameLoadCase, ref csiCaseType, ref loadCaseSubType, ref csiPatternType, ref csiDesignTypeOption, ref csiAutoCreatedCase); if (throwCurrentApiException(_callCode)) { throw new CSiException(API_DEFAULT_ERROR_CODE); } loadCaseType = EnumLibrary.Convert(csiCaseType, loadCaseType); designType = EnumLibrary.Convert(csiPatternType, designType); designTypeOption = (eSpecificationSource)csiDesignTypeOption; autoCreatedCase = (eAutoCreatedCase)csiAutoCreatedCase; }
internal static eLoadCaseType FromCSi(CSiProgram.eLoadCaseType enumValue) { return((eLoadCaseType)enumValue); }