IGH_DataAccess DA; if (!DA.GetData(0, ref input)) return;
var DA = new GH_RhinoScriptInterface().CreateDataAccess(); decimal myDecimal = 0.0m; if (DA.GetData(0, ref myDecimal)) A = myDecimal * 2;This code snippet shows how to retrieve a decimal value from the first input parameter of a Grasshopper component and multiply it by 2. The GH_RhinoScriptInterface is a package library that provides a scripting interface to Rhino and Grasshopper. Overall, the package library for IGH_DataAccess is the Grasshopper plugin for Rhino.