Grasshopper

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

Views: 364

Attachments:

Replies to This Discussion

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.

Yes it worked, apparently that was the problem.

Thank you so much to both Daniel and Pieter.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service