Grasshopper

algorithmic modeling for Rhino

I am writing a component where I have an input parameter of type brep, but I would like it to be optional (the user does not have to hook a brep to it) for the component to be solved:

"pManager.Register_BRepParam("Surface", "S", "Base surface");"

I do not seem to find a way to do that. Is it possible? 

Views: 888

Replies to This Discussion

Hi Rajaa,

Try adding a line of code pManager[xxx].Optional = true;  where xxx is the index of the parameter in the list of inputs starting at 0 for the first.

Cheers,

Jon

Fantastic.  Thanks.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service