algorithmic modeling for Rhino
Hi everyone,
I am knew in Vb..NET, so I am trying to conduct examples given in Grasshopper SDK Documentation. But I am stuck on the first one (simple component). I keep getting error, saying:
Error 1 Overload resolution failed because no accessible 'AddTextParameter' accepts this number of arguments.
Error 2 Argument not specified for parameter 'access' of 'Public Function AddTextParameter
I attached the VB file below.
Thanks,
Jelena
Tags:
It is possible that some documentation is obsolete, I do not know.
The case, you have to specify the type of access (item, list or tree).
pManager.AddTextParameter("String", "S", "String to reverse", GH_ParamAccess.item)
I'd say it's an oversight/fault in the sdk example.
In case you can't read the whole line Dani posted (it's trimmed over here):
pManager.AddTextParameter("String", "S", "String to reverse", GH_ParamAccess.item)
will fix it. Use the same parameter access for the output parameter.
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