Grasshopper

algorithmic modeling for Rhino

All

I am having a consistent error/warning now with my compiled custom components after installing  the latest build of GH. The error says that a component path must have at least one element. I suspect it may be because many of my components have optional input parameters and maybe the SDK for GH0.9 has an extra method required now for defining optional parameters. 

Has anyone experienced this and know if there are any solutions to this,

cheers

Views: 581

Attachments:

Replies to This Discussion

Ok sorted it, you have to use the correct argument for the NEW constructor now when creating paths to assign initial values to any optional input parameters. I guess in the previous non 0.9 SDK the warning was not used.

i.e
Dim ghPath7 As New Grasshopper.Kernel.Data.GH_Path
Me.Params.Input.Item(8).AddVolatileDataList(ghPath7, lStrv1)

gives warning as there is no element in the path, but the following solves that and there is no warning...........

Dim ghPath7 As New Grasshopper.Kernel.Data.GH_Path(0)
Me.Params.Input.Item(8).AddVolatileDataList(ghPath7, lStrv1)

Hi Steve,

I'm getting the same error message.

Where can I assign the correct path?

Thanks!

Mårten

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service