Exemplo n.º 1
0
 public static Dictionary <string, object> LineTemperatureLoadDeconstruct(FemDesign.Loads.LineTemperatureLoad lineTemperatureLoad)
 {
     return(new Dictionary <string, object>
     {
         { "Guid", lineTemperatureLoad.Guid },
         { "Curve", lineTemperatureLoad.Edge.ToDynamo() },
         { "Direction", lineTemperatureLoad.Direction.ToDynamo() },
         { "TopBotLocVal1", lineTemperatureLoad.TopBotLocVal[0] },
         { "TopBotLocVal2", lineTemperatureLoad.TopBotLocVal[1] },
         { "LoadCaseGuid", lineTemperatureLoad.LoadCase },
         { "Comment", lineTemperatureLoad.Comment }
     });
 }
Exemplo n.º 2
0
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            // get input
            FemDesign.Loads.LineTemperatureLoad obj = null;
            if (!DA.GetData(0, ref obj))
            {
                return;
            }
            if (obj == null)
            {
                return;
            }

            // return
            DA.SetData(0, obj.Guid);
            DA.SetData(1, obj.Edge.ToRhino());
            DA.SetData(2, obj.Direction.ToRhino());
            DA.SetData(3, obj.TopBotLocVal[0]);
            DA.SetData(4, obj.TopBotLocVal[1]);
            DA.SetData(5, obj.LoadCase);
            DA.SetData(6, obj.Comment);
        }