Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DesignerMetal{T}"/> class.
 /// </summary>
 /// <param name="app">The application.</param>
 /// <param name="groups">The groups.</param>
 /// <param name="loadCombinations">The load combinations.</param>
 /// <param name="loadCases">The load cases.</param>
 /// <param name="apiObject">The API object.</param>
 protected DesignerMetal(
     ApiCSiApplication app,
     Groups groups,
     LoadCombinations loadCombinations,
     LoadCases loadCases,
     T apiObject) : base(app, groups, loadCombinations, apiObject)
 {
     _loadCases             = loadCases;
     _apiComboDeflection    = apiObject;
     _apiTargetPeriod       = apiObject;
     _apiTargetDisplacement = apiObject;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Selects or deselects a load combination for deflection design.
 /// </summary>
 /// <param name="nameLoadCombination">Name of an existing load combination.</param>
 /// <param name="selectLoadCombination">True: The specified load combination is selected as a design combination for deflection design.
 /// False: The combination is not selected for deflection design.</param>
 /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
 protected void setComboDeflection(IComboDeflection app, string nameLoadCombination, bool selectLoadCombination)
 {
     app.SetComboDeflection(nameLoadCombination, selectLoadCombination);
     if (selectLoadCombination)
     {
         if (!CombinationsDeflection.Contains(nameLoadCombination))
         {
             CombinationsDeflection.Add(nameLoadCombination);
         }
     }
     else
     {
         CombinationsDeflection.Remove(nameLoadCombination);
     }
 }
Exemplo n.º 3
0
 /// <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;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Gets the names of all load combinations used for deflection design.
 /// </summary>
 /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
 protected void getComboDeflection(IComboDeflection app)
 {
     CombinationsDeflection = new List <string>(app.GetComboDeflection());
 }