Пример #1
0
        NodeDisplacements GetNodeDisplacements(Node Node, ILoadCase LoadCase)
        {
            NodeDisplacements nodeDisplacements;
            dynamic           displacements;

            displacements = new double[6];
            this.StaadWrapper.Output.GetNodeDisplacements(Node.ID, LoadCase.Id, ref displacements);

            nodeDisplacements = new NodeDisplacements()
            {
                x        = displacements[0],
                y        = displacements[1],
                z        = displacements[2],
                rx       = displacements[3],
                ry       = displacements[4],
                rz       = displacements[5],
                Node     = Node,
                LoadCase = LoadCase
            };

            return(nodeDisplacements);
        }
Пример #2
0
        private NodeDisplacements GetNodeDisplacements(Node Node, ILoadCase LoadCase)
        {
            NodeDisplacements nodeDisplacements;
            dynamic displacements;

            displacements = new double[6];
            this.Staad.Output.GetNodeDisplacements(Node.ID, LoadCase.ID, ref displacements);

            nodeDisplacements = new NodeDisplacements()
            {
                x = displacements[0],
                y = displacements[1],
                z = displacements[2],
                rx = displacements[3],
                ry = displacements[4],
                rz = displacements[5],
                Node = Node,
                LoadCase = LoadCase
            };

            return nodeDisplacements;
        }