Getting TYPE Parameter.HasValue working

Hi guys,
I’m trying to get a True/False result, if a type parameter from elements has value.
It works fine for instance parameters:

The thing here, is that I want to know that about a type parameter, and in that case, the node “Parameter.ParameterByName” gives empty values and then the node “Parameter.HasValue” returns nulls.
Does any one knows how to get that for type parameters?
Thank you in advance!

p.s.: Script in attachment
Dynamo_TypeParametersHasValue_test001.dyn (10.9 KB)

In Revit you can read the mark parameter by checking the properties pallet. But if instead of reading the Mark parameter you wanted to pull the Type Mark you’d have to open the element types dialog to expose the element type data.

Dynamo is no different. If you want Type Mark you’ve got to pull the Element Type (a parameter if memory serves, I recall there is also a node for it) and then you can read the Type Mark.

Note that you may (perhaps usually will) have multiple instances of the same type in the list, so a List.UniqueItems may also be in order.

Dynamo_TypeParametersHasValue_Working.dyn (13.9 KB)
Hi Jacob,
Thank you for your help. I tried what you said and it works fine.
To be honest, for Type Mark, even if it’s empty it, it get True in the Parameter.HasValue node.
As I want then to get a shared type parameter, it works pretty well.
Thank you again

1 Like