Type parameter into element parameter

revit
dynamo

#1

Hey community,

Is there a way to transfer a type parameter, which is locked, into an element parameter for ALL objects in revit?
fig. 1 represents what I want to do (transfer “CCSTypeID_Type” from a type parameters to “CCSTypeID_Type1” element (object) parameter. But it has to be for ALL the objects in the model, not a specific type or family)
“CCSTypeID_Type” parameter is “locked” to display only in the type parameters.

Thanks!


#2

You can start by trying to get and set parameters and see what happens:


See also Element.SetParameterByNameTypeOrInstance and Element.GetParameterValueByNameTypeOrInstance nodes from Rhythm package, as well as what’s exposed in the Dictionary if needed.


Create Parameters in a Revit Family
Adding Room Numbers onto the Walls as parameter
Combine all Room Names into a new shared parameter?
#3

Thanks a lot, it did solve the problem!

Before that I was using Element.GetParameterValueByName node from Revit package, which could only read parameters from the instances, not the types.