Exemplo n.º 1
0
        /// <summary>
        /// This is the method that actually does the work.
        /// </summary>
        /// <param name="DA">The DA object is used to retrieve from inputs and store in outputs.</param>
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            StructureType str = new StructureType();

            if (!DA.GetData(0, ref str))
            {
                return;
            }

            double mass = str.GetMass();

            DA.SetData(0, mass);
        }