Grasshopper

algorithmic modeling for Rhino

For the section on Custom Attributes for the SDK C# tutorials - I was wondering if there is a need for the methods such as RegisterInputParameters() or RegisterOutputParameters(), or are the code snippets there inside a class all there needs?

Thanks. 

I have some issues with this because the "Me" variable used in the MySimpleIntegerParameterAttributes(Me) was never declared anywhere in this tutorial.

Views: 718

Replies to This Discussion

Me in Visual Basic refers to the class you're currently in. If you derive from another class, then MyBase refers to that class. in C# these two keywords are this and base respectively.

The example shows how to assign custom attributes to a parameter. Parameters do not have RegisterInputParams methods, that is for components only.

--

David Rutten

david@mcneel.com

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service