algorithmic modeling for Rhino
Hi everyone,
im trying to build a component in VS that excepts a list of point3d. hence the following
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.AddPointParameter("Line Points", "LPT", "This is a test Line.", GH_ParamAccess.list);
}
to which in the solving routine I try to copy this into a variable like so
protected override void SolveInstance(IGH_DataAccess DA)
{
RhinoList<Point3d> holderPts = new RhinoList<Point3d>();
if(!DA.GetDataList(1 , holderPts)) {return; }
}
but this gives me the following error. "the type arguments... cannot be inferred from the usage. try specifying the type arguments explicitly..."
why inst this working?
im basically trying to do this the same way that the "list component" example from the SDK does it....
List<IGH_GeometricGoo> geometry = new List<IGH_GeometricGoo>();
if ((!DA.GetDataList(0, geometry))) return;
any ideas?
M
Tags:
List<Point3d> not RhinoList<Point3d>
--
David Rutten
david@mcneel.com
Tirol, Austria
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by