Example #1
0
        /// <summary>
        /// Clears (removes) all assignments from the specified group.
        /// </summary>
        public void Clear()
        {
            foreach (var point in Points)
            {
                Remove(point);
            }

            foreach (var frame in Frames)
            {
                Remove(frame);
            }

            foreach (var area in Areas)
            {
                Remove(area);
            }

            foreach (var link in Links)
            {
                Remove(link);
            }

            Points.Clear();
            Frames.Clear();
            Areas.Clear();
            Links.Clear();
            Cables.Clear();
            Tendons.Clear();
            Solids.Clear();
        }
Example #2
0
        /// <summary>
        /// Clears (removes) all assignments from the specified group.
        /// </summary>
        /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
        public void Clear()
        {
#if !BUILD_ETABS2015 && !BUILD_ETABS2016 && !BUILD_ETABS2017
            _app?.Model.Definitions.Groups.Clear(Name);
#else
            //Node
            foreach (var point in Points)
            {
                Remove(point);
            }
            //Frame
            foreach (var frame in Frames)
            {
                Remove(frame);
            }
            //Area
            foreach (var area in Areas)
            {
                Remove(area);
            }
            //Link
            foreach (var link in Links)
            {
                Remove(link);
            }
#endif
            Points.Clear();
            Frames.Clear();
            Areas.Clear();
            Links.Clear();
#if !BUILD_ETABS2015 && !BUILD_ETABS2016 && !BUILD_ETABS2017
            Cables.Clear();
            Tendons.Clear();
            Solids.Clear();
#endif
        }