Global Parameters
Global parameters are accessible by any element in the model
A New Kind of Parameter
Accessing Global Parameters
#Boilerplate Code
#To retrieve a list of all global parameters' IDs we can use:
all_global_parameter_ids = GlobalParameterManager.GetAllGlobalParameters()
#We can also retrieve a single global parameter using its name
test_parameter_id = GlobalParameterManager.FindByName("Test")
#Finally, we can get the GlobalParameter object using the Document.GetElement() method:
test_parameter = doc.GetElement(test_parameter_id)
OUT = test_parameterGetting and Setting Values
Last updated
Was this helpful?