Esempio n. 1
0
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            //
            FemDesign.Releases.Motions obj = FemDesign.Releases.Motions.Free();

            // return
            DA.SetData(0, obj);
        }
Esempio n. 2
0
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            FemDesign.Releases.Motions obj = null;
            if (!DA.GetData(0, ref obj))
            {
                return;
            }
            if (obj == null)
            {
                return;
            }

            //
            DA.SetData(0, obj.XNeg);
            DA.SetData(1, obj.XPos);
            DA.SetData(2, obj.YNeg);
            DA.SetData(3, obj.YPos);
            DA.SetData(4, obj.ZNeg);
            DA.SetData(5, obj.ZPos);
        }
Esempio n. 3
0
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            // get data
            FemDesign.Releases.Motions   motions   = null;
            FemDesign.Releases.Rotations rotations = null;
            if (!DA.GetData(0, ref motions))
            {
                return;
            }
            if (!DA.GetData(1, ref rotations))
            {
                return;
            }
            if (motions == null || rotations == null)
            {
                return;
            }

            //
            FemDesign.Shells.EdgeConnection obj = new FemDesign.Shells.EdgeConnection(motions, rotations);

            // return
            DA.SetData(0, obj);
        }
Esempio n. 4
0
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            // get indata
            double x_neg = 0, x_pos = 0, y_neg = 0, y_pos = 0, z_neg = 0, z_pos = 0;

            if (!DA.GetData(0, ref x_neg))
            {
                // pass
            }
            if (!DA.GetData(1, ref x_pos))
            {
                // pass
            }
            if (!DA.GetData(2, ref y_neg))
            {
                // pass
            }
            if (!DA.GetData(3, ref y_pos))
            {
                // pass
            }
            if (!DA.GetData(4, ref z_neg))
            {
                // pass
            }
            if (!DA.GetData(5, ref z_pos))
            {
                // pass
            }

            //
            FemDesign.Releases.Motions obj = FemDesign.Releases.Motions.Define(x_neg, x_pos, y_neg, y_pos, z_neg, z_pos);

            // return
            DA.SetData(0, obj);
        }