/// <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 }
/// <summary> /// Removes objects from the group. /// </summary> /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception> public void Remove(Tendon item) { setGroupAssign(item, remove: true); Tendons.Remove(item); }
/// <summary> /// Removes objects from the group. /// </summary> /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception> public void Remove(Tendon item) { setGroupAssign(item, remove: true); Tendons.Remove(item); item.RemoveFromGroup(this); }