I wonder if it is possible to set the value of either a document or an object custom parameter in Grasshopper. I see the option to check the document parameters… maybe with option parameter and parameter option?
Hi Pedro, yes you can do that with the “Set Property Component” (VisualARQ > D.Generics > VisualARQ Set Propery). The string you plug into the Property input must be the same as the name of the existing custom parameter.
@fsalla , it is possible to generate or call these Parameters as VARQ objects?
I have a list of Parameters already existing in a Space Style (and walls, and slabs, etc), but not as ‘Rhino Parameters’, and assumed that I could feed in a Property / Value as Strings like I would with Keys / Values.
It works on some of the items, but fails on others with a Solution exception:Object reference not set to an instance of an object error.
These are my data trees:
You need to distinguish between Rhino parameters (which I guess is what you mean by Rhino “User Texts”), and VisualARQ’s custom parameters.
In the case of VisualARQ parameters, you can identify their names with the “Property Names” component, and the corresponding values with the “Get Property” component.
Then you can feed the object with new parameters and values with the Set Property component or the “Update Property” component: