Grasshopper

algorithmic modeling for Rhino

Hi,

I made my own parameter to exchange some specific data between my components. Everything worked fine. I just want to tune it up and set up the name previewed by hoovering the output or plugin it in panel. Now it is using "nemespace.className" as name, but i would like to have something more readable. What should I implement?

Thanks

Views: 496

Replies to This Discussion

You should override TypeName, TypeDescription and ToString on your data class:

Public Overrides Function ToString() As String
  'Return whatever data you want to see to identify the graph.

  'Points return rounded coordinates, curves return some

  'details about the topology, integers return a completely

  'lossless string representation of themselves.
End Function

Public Overrides ReadOnly Property TypeName() As String
  Get
    Return "Graph"
  End Get
End Property


Public Overrides ReadOnly Property TypeDescription() As String
  Get
    Return "A graph for doing something or other"
  End Get
End Property

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Works perfect! Thank you for quick response.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service