Get Value of Type Parameter?

Hi all… I am just starting to try to learn how to use Dynamo and have read and watched various web tutorials etc. but have hit a problem as soon as trying to test my understanding. I’m not trying to achieve a specific task at this point, I am just experimenting but the first experiment I tried involved trying to get the value of a type parameter which it seems may be difficult to do based on what I have read online.
Is there a straightforward way for me to extract the value of a type parameter or is this just not easily done ?

Thanks

You can use “Get Type Parameter” from the Archi-lab package:

2 Likes

Hi T_Pover,

I have tried what you suggested and what l thought should work, yet for me it returns no value at all. It should return a value of 1, but instead it returns nothing. Any thoughts?

I have tried below, yet does not return ‘1’. Ridiculous. Instance values, yes, type values apparently no??

Try Element.ElementType after All Elements of Category

8 Likes

Hi Marcel,

A second before your response, l got this to work:

1 Like

Which package is this node from?

Element.ElementType is OOTB i think
Element.Type+ is from Clockwork (and also works on linked models)

2 Likes

Can it be adapted to extract values from all TYPE parameters from an element ? without need to code every parameter name?

Try the ‘Element.Parameters’ node.

The Element.Parameters returns the index of the list “space” name and the values separated by a “:”, like this
N ParameterName : Value
3 Diameter : 3 m
And it is a long list of parameters 304 + - , but I need only some parameters like “Diameter” , “Heig”, “Length”
Using Element.GetParameterValueByName i can get only one name por Code Block, is there a way to list multiple “names” So i can get the necessary ones ?

Thanks for any help.

You mean get a few parameters at once?

Yes you can.

In a code block you can type:
[“name” , “number” , “size”] << for example to get the parameters, name, number and size.

Beyond a code block, you could leverage a List.Create node and a few String nodes.

From there a single Element.GetParameterValueByName node will get you all the parameter values - just make sure you’ve set your list lacing and levels correctly.