Beispiel #1
0
 public static Dictionary <string, object> DiaphragmDeconstruct(FemDesign.ModellingTools.Diaphragm diaphragm)
 {
     return(new Dictionary <string, object>
     {
         { "Guid", diaphragm.Guid },
         { "Surface", diaphragm.Region.ToDynamoSurface() },
         { "Identifier", diaphragm.Identifier }
     });
 }
Beispiel #2
0
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            // get input
            FemDesign.ModellingTools.Diaphragm diaphragm = null;
            if (!DA.GetData(0, ref diaphragm))
            {
                return;
            }
            if (diaphragm == null)
            {
                return;
            }

            DA.SetData("Guid", diaphragm.Guid);
            DA.SetData("Surface", diaphragm.Region.ToRhinoBrep());
            DA.SetData("Identifier", diaphragm.Identifier);
        }