Setting Global Parameters

I’ve searched the forum but have not seen a conclusive answer as to whether you can adjust Global Parameters via Dynamo. I have seen how to access their values but not manipulate them. Global Parameters - #2 by Dimitar_Venkov
Is it possible to Set the parameter?

Thanks
Ben

It seems like the API allows it.

http://www.revitapidocs.com/2016/df012c22-6e65-8de5-1057-f15660d02288.htm

Unfortunately it’s not a one-liner. I only needed to get values at the time so I didn’t bother to make a node that sets values, too. Basically you have to check the data / unit type of the parameter and then check if your input value is compatible to that type. If it’s a length param (or anything else with a unit) you’ll have to perform a unit conversion as well.

Sorry, I couldn’t resist.

3 Likes