Receiving multiple errors on my GH script

I’m working on a project where I’m trying to employ a form finding mechanism to build out the somaya musuem in Mexico city, however, I reached a road block there seems to be a bug in my script. If anyway can help me debug or find alternative strategy to form find, I’d highly appreciate it!

structurestake2.gh (24.9 KB)
structurestake2.3dm (143.7 KB)

missing

That’s a little vague, eh? Appears to be Karamba and C#?

  1. Error (CS1061): ‘object’ does not contain a definition for ‘Count’ and no extension method ‘Count’ accepting a first argument of type ‘object’ could be found (are you missing a using directive or an assembly reference?) (line 61)
  2. Error (CS0021): Cannot apply indexing with to an expression of type ‘object’ (line 64)
  3. Error (CS0019): Operator ‘==’ cannot be applied to operands of type ‘double’ and ‘object’ (line 67)
  4. Error (CS0019): Operator ‘==’ cannot be applied to operands of type ‘double’ and ‘System.Collections.Generic.List’ (line 69)

And Kangaroo:

  1. Solution exception:Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.

You need to set the proper access type and type hint for your script inputs (right-click on the input to access menu)

Your script was setup as follows:

  • pts_naked
    • item access
    • type hint: none
  • z_lower
    • item access
    • type hint: none
  • z_upper
    • list access
    • type hint: none

Your C# script will run properly if you change the setup of the inputs to:

  • pts_naked
    • list access
    • type hint: Point3d
  • z_lower
    • item access
    • type hint: double
  • z_upper
    • item access
    • type hint: double

If you hover the mouse over an input you will get a pop-up that shows the access type and type hint.

-Kevin

3 Likes