Default input for pManager.AddXXXParameter()

So I have done some research prior to posting this question again.

I know it’s been asked before (like the below link), but after doing some reading I still don’t know how to set a default Input parameter to the component, like below

I am working in C# Visual Studio. And would like to set the Default Plane Parameter into World.XY

Default value is taken as a fifth argument, like:

pManager.AddTextParameter("Text", "Text", "Text to format", GH_ParamAccess.item, "roar!");`

So here “roar!” will be default value.


Hi @w.radaczynski
if default Value must be one geometry (for exmple Curve(from rhino)) how?

1 Like

It looks like there is no option to add default value for Curves:

1 Like