Пример #1
0
        /// <summary>
        /// Selects or deselects a group for frame design.
        /// </summary>
        /// <param name="group">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>
        private void set(Group group, bool selectForDesign)
        {
            _apiAutoSection.SetGroup(group.Name, selectForDesign);

            if (selectForDesign)
            {
                if (!GroupNames.Contains(group.Name))
                {
                    GroupNames.Add(group.Name);
                }
                if (!Groups.Contains(group))
                {
                    _designGroups.Add(group);
                }
            }
            else
            {
                GroupNames.Remove(group.Name);
                _designGroups.Remove(group);
            }
        }
Пример #2
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);
 }