/// <summary> /// Initializes a new instance of the <see cref="LoadCombination" /> class. /// </summary> /// <param name="app">The application.</param> /// <param name="analyzer">The analyzer.</param> /// <param name="loadCases">The load cases.</param> /// <param name="loadCombinations">The load combinations.</param> /// <param name="name">The name.</param> private LoadCombination( ApiCSiApplication app, Analyzer analyzer, LoadCases loadCases, LoadCombinations loadCombinations, string name) : base(app, name) { _analyzer = analyzer; _loadCases = loadCases; _loadCombinations = loadCombinations; }
/// <summary> /// Adds a new load combination. /// The new load combination must have a different name from all other load combinations and all load cases. /// If the name is not unique, an error will be returned. /// </summary> /// <param name="app">The application.</param> /// <param name="analyzer">The analyzer.</param> /// <param name="loadCases">The load cases.</param> /// <param name="loadCombinations">The load combinations.</param> /// <param name="uniqueNameLoadCombo">The name of a new load combination.</param> /// <param name="comboType">The load combination type to add.</param> /// <returns>LoadCombination.</returns> /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception> internal static LoadCombination Add( ApiCSiApplication app, Analyzer analyzer, LoadCases loadCases, LoadCombinations loadCombinations, string uniqueNameLoadCombo, eLoadComboType comboType) { ApiLoadCombination apiLoadCombinations = getApiLoadCombination(app); apiLoadCombinations.Add(uniqueNameLoadCombo, comboType); return(Factory(app, analyzer, loadCases, loadCombinations, uniqueNameLoadCombo)); }
/// <summary> /// Returns a new load combination class. /// </summary> /// <param name="app">The application.</param> /// <param name="analyzer">The analyzer.</param> /// <param name="loadCases">The load cases.</param> /// <param name="loadCombinations">The load combinations.</param> /// <param name="uniqueName">Unique load combination name.</param> /// <returns>Steel.</returns> internal static LoadCombination Factory( ApiCSiApplication app, Analyzer analyzer, LoadCases loadCases, LoadCombinations loadCombinations, string uniqueName) { LoadCombination loadCombination = new LoadCombination(app, analyzer, loadCases, loadCombinations, uniqueName); loadCombination.FillData(); return(loadCombination); }
/// <summary> /// Initializes a new instance of the <see cref="LoadCombinationsDeflection"/> class. /// </summary> /// <param name="apiComboDeflection">The API combo deflection.</param> /// <param name="loadCombinations">The load combinations.</param> public LoadCombinationsDeflection(IComboDeflection apiComboDeflection, LoadCombinations loadCombinations) { _apiComboDeflection = apiComboDeflection; _loadCombinations = loadCombinations; }
/// <summary> /// Initializes a new instance of the <see cref="LoadCombinationsStrength"/> class. /// </summary> /// <param name="apiComboStrength">The API combo strength.</param> /// <param name="loadCombinations">The load combinations.</param> public LoadCombinationsStrength(IComboStrength apiComboStrength, LoadCombinations loadCombinations) { _apiComboStrength = apiComboStrength; _loadCombinations = loadCombinations; }