Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Designer{T}" /> class.
 /// </summary>
 /// <param name="app">The application.</param>
 /// <param name="groups">The groups.</param>
 /// <param name="loadCombinations">The load combinations.</param>
 /// <param name="apiObject">The API object.</param>
 protected Designer(
     ApiCSiApplication app,
     Groups groups,
     LoadCombinations loadCombinations,
     T apiObject) : base(app)
 {
     _apiComboStrength = apiObject;
     _apiAutoSection   = apiObject;
     _groups           = groups;
     _loadCombinations = loadCombinations;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GroupsDesign"/> class.
 /// </summary>
 /// <param name="apiAutoSection">The API automatic section.</param>
 /// <param name="groups">The groups.</param>
 public GroupsDesign(IAutoSection apiAutoSection, Groups groups)
 {
     _apiAutoSection = apiAutoSection;
     _groups         = groups;
 }
Example #3
0
 /// <summary>
 /// Removes the auto select section assignments from all specified frame objects that have a steel frame design procedure.
 /// </summary>
 /// <param name="itemName">Name of an existing frame object or group, depending on the value of the ItemType item.</param>
 /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
 protected void setAutoSelectNull(IAutoSection app, string itemName)
 {
     app.SetAutoSelectNull(itemName);
 }
Example #4
0
 /// <summary>
 /// Selects or deselects a group for frame design.
 /// </summary>
 /// <param name="nameGroup">Name of an existing group.</param>
 /// <param name="selectForDesign">True: The specified group is selected as a design group for steel design.
 /// False: The group is not selected for steel design.</param>
 /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
 protected void setGroup(IAutoSection app, string nameGroup, bool selectForDesign)
 {
     app.SetGroup(nameGroup, selectForDesign);
 }
Example #5
0
 // ===
 /// <summary>
 /// Retrieves the names of all groups selected for design.
 /// These groups are used in the design optimization process, where the optimization is applied at a group level.
 /// </summary>
 /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
 protected void getGroup(IAutoSection app)
 {
     Groups = new List <string>(app.GetGroup());
 }