Exemplo n.º 1
0
        /// <summary>
        /// Retrieves the assignments to the group.
        /// </summary>
        /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
        public void FillAssignments()
        {
            List <Tuple <eObjectType, string> > assignmentsList = GetAssignmentsList();

            foreach (var tuple in assignmentsList)
            {
                string objectName = tuple.Item2;
                switch (tuple.Item1)
                {
                case eObjectType.Area:
                    Area area = _objects.Areas.FillItem(objectName);
                    HelperFunctions.AddUniqueItem(area, Areas);
                    break;

                case eObjectType.Frame:
                    Frame frame = _objects.Frames.FillItem(objectName);
                    HelperFunctions.AddUniqueItem(frame, Frames);
                    break;

                case eObjectType.Link:
                    Link link = _objects.Links.FillItem(objectName);
                    HelperFunctions.AddUniqueItem(link, Links);
                    break;

                case eObjectType.Point:
                    Point node = _objects.Points.FillItem(objectName);
                    HelperFunctions.AddUniqueItem(node, Points);
                    break;

#if !BUILD_ETABS2015 && !BUILD_ETABS2016 && !BUILD_ETABS2017
                case eObjectType.Cable:
                    Cable cable = _objects.Cables.FillItem(objectName);
                    HelperFunctions.AddUniqueItem(cable, Cables);
                    break;

                case eObjectType.Tendon:
                    Tendon tendon = _objects.Tendons.FillItem(objectName);
                    HelperFunctions.AddUniqueItem(tendon, Tendons);
                    break;

                case eObjectType.Solid:
                    Solid solid = _objects.Solids.FillItem(objectName);
                    HelperFunctions.AddUniqueItem(solid, Solids);
                    break;
#endif
                default:
                    break;
                }
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Retrieves the assignments to the group.
        /// </summary>
        /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
        public void FillAssignments()
        {
            List <Tuple <eObjectType, string> > assignmentsList = GetAssignmentsList();

            foreach (var tuple in assignmentsList)
            {
                switch (tuple.Item1)
                {
                case eObjectType.Area:
                    Area area = Area.Factory(tuple.Item2);
                    HelperFunctions.AddUniqueItem(area, Areas);
                    break;

                case eObjectType.Frame:
                    Frame frame = Frame.Factory(tuple.Item2);
                    HelperFunctions.AddUniqueItem(frame, Frames);
                    break;

                case eObjectType.Link:
                    Link link = Link.Factory(tuple.Item2);
                    HelperFunctions.AddUniqueItem(link, Links);
                    break;

                case eObjectType.Point:
                    Node node = Node.Factory(tuple.Item2);
                    HelperFunctions.AddUniqueItem(node, Points);
                    break;

#if !BUILD_ETABS2015 && !BUILD_ETABS2016 && !BUILD_ETABS2017
                case eObjectType.Cable:
                    Cable cable = Cable.Factory(tuple.Item2);
                    HelperFunctions.AddUniqueItem(cable, Cables);
                    break;

                case eObjectType.Tendon:
                    Tendon tendon = Tendon.Factory(tuple.Item2);
                    HelperFunctions.AddUniqueItem(tendon, Tendons);
                    break;

                case eObjectType.Solid:
                    Solid solid = Solid.Factory(tuple.Item2);
                    HelperFunctions.AddUniqueItem(solid, Solids);
                    break;
#endif
                default:
                    break;
                }
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// Adds objects to the group.
 /// </summary>
 /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
 public void Add(Solid item)
 {
     setGroupAssign(item, remove: false);
     HelperFunctions.AddUniqueItem(item, Solids);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Adds objects to the group.
 /// </summary>
 /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
 public void Add(Cable item)
 {
     setGroupAssign(item, remove: false);
     HelperFunctions.AddUniqueItem(item, Cables);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Adds objects to the group.
 /// </summary>
 /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
 public void Add(Tendon item)
 {
     setGroupAssign(item, remove: false);
     HelperFunctions.AddUniqueItem(item, Tendons);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Adds objects to the group.
 /// </summary>
 /// <param name="item">The item.</param>
 /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
 public void Add(Link item)
 {
     setGroupAssign(item, remove: false);
     HelperFunctions.AddUniqueItem(item, Links);
 }
Exemplo n.º 7
0
 /// <summary>
 /// Adds objects to the group.
 /// </summary>
 /// <param name="item">The item.</param>
 /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
 public void Add(Area item)
 {
     setGroupAssign(item, remove: false);
     HelperFunctions.AddUniqueItem(item, Areas);
 }
Exemplo n.º 8
0
 /// <summary>
 /// Adds objects to the group.
 /// </summary>
 /// <param name="item">The item.</param>
 /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
 public void Add(Node item)
 {
     setGroupAssign(item, remove: false);
     HelperFunctions.AddUniqueItem(item, Points);
 }
Exemplo n.º 9
0
 /// <summary>
 /// Adds objects to the group.
 /// </summary>
 public void Add(Solid item)
 {
     HelperFunctions.AddUniqueItem(item, Solids);
     item.AddToGroup(this);
 }
Exemplo n.º 10
0
 /// <summary>
 /// Adds objects to the group.
 /// </summary>
 public void Add(Cable item)
 {
     HelperFunctions.AddUniqueItem(item, Cables);
     item.AddToGroup(this);
 }
Exemplo n.º 11
0
 /// <summary>
 /// Adds objects to the group.
 /// </summary>
 public void Add(Tendon item)
 {
     HelperFunctions.AddUniqueItem(item, Tendons);
     item.AddToGroup(this);
 }
Exemplo n.º 12
0
 /// <summary>
 /// Adds objects to the group.
 /// </summary>
 /// <param name="item">The item.</param>
 public void Add(Link item)
 {
     HelperFunctions.AddUniqueItem(item, Links);
     item.AddToGroup(this);
 }
Exemplo n.º 13
0
 /// <summary>
 /// Adds objects to the group.
 /// </summary>
 /// <param name="item">The item.</param>
 public void Add(Area item)
 {
     HelperFunctions.AddUniqueItem(item, Areas);
     item.AddToGroup(this);
 }
Exemplo n.º 14
0
 /// <summary>
 /// Adds objects to the group.
 /// </summary>
 /// <param name="item">The item.</param>
 public void Add(Frame item)
 {
     HelperFunctions.AddUniqueItem(item, Frames);
     item.AddToGroup(this);
 }
Exemplo n.º 15
0
 /// <summary>
 /// Adds objects to the group.
 /// </summary>
 /// <param name="item">The item.</param>
 public void Add(Point item)
 {
     HelperFunctions.AddUniqueItem(item, Points);
     item.AddToGroup(this);
 }
Exemplo n.º 16
0
 /// <summary>
 /// Adds objects to the group.
 /// </summary>
 /// <param name="item">The item.</param>
 /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
 public void Add(Frame item)
 {
     setGroupAssign(item, remove: false);
     HelperFunctions.AddUniqueItem(item, Frames);
     item.AddToGroup(this);
 }