Ejemplo n.º 1
0
 public static Dictionary <string, object> TopBottomLocationValueDeconstruct(FemDesign.Loads.TopBotLocationValue topBotLocVal)
 {
     return(new Dictionary <string, object>
     {
         { "Point", topBotLocVal.GetFdPoint().ToDynamo() },
         { "TopValue", topBotLocVal.TopVal },
         { "BottomValue", topBotLocVal.BottomVal }
     });
 }
Ejemplo n.º 2
0
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            // get input
            FemDesign.Loads.TopBotLocationValue obj = null;
            if (!DA.GetData(0, ref obj))
            {
                return;
            }
            if (obj == null)
            {
                return;
            }

            // return
            DA.SetData(0, obj.GetFdPoint().ToRhino());
            DA.SetData(1, obj.TopVal);
            DA.SetData(2, obj.BottomVal);
        }