Grasshopper

algorithmic modeling for Rhino

Dear David,

 

I just encountered a nice phenomena: I made a mistake in my toString method in a custom VB Param (Particle inherits GH_Param):

 

Public Overrides Function ToString() As String
Return "Particle at {" + Position.X + ";" + Position.Y + ";" + Position.Z + "}"
End Function

 

Which of course should be:

Public Overrides Function ToString() As String
Return "Particle at {" + Position.X.ToString + ";" + Position.Y.ToString + ";" + Position.Z.ToString + "}"
End Function

 

When connecting a panel to the output there will be a nice error. However: when hovering the solution Rhino will crash. Not sure if this is a bug, but if there is a way to catch the error it would of course make the world a better place.

 

Enjoy Delft!

Views: 144

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service