コード例 #1
0
ファイル: StaadModel.cs プロジェクト: GoldCup42/STAADModel
        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
ファイル: StaadModel.cs プロジェクト: yuominae/STAADModel
        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;
        }