Get Cost Parameter/Type


#1

I want to get cost parameter from pipe but i cant do it. All pipes cost is 1 but dynamo extract null value. How can i do it ?


#2

You sure these pipes have a cost parameter?
If you want their cost to be 1 you can also simply put a “Count” node after the “Get Type Parameter” node and get the same result.


#3

Actually i want to use cost parameter like this. All pipe types have a cost parameter in revit.


#4

İt doesnt have to be cost parameter. I tried Type Mark parameter but i cant use it with code block.


#5

Maybe the “Type Mark” parameter is a string or something, it might work if you put the 1 between ""s


#6

When i try to write Type Mark parameter in code block get me an error i think because there is space between Type and Mark. I tried Type_Mark in code block it made an error again.


#7

Are you certain it isn’t simply “Mark”.


#8


#9


Maybe this one can help. I’m not sure whats going on here.


#10

I should write Type Mark parameter in code block with input and output value like cost parameter in code block.


#11

Hi @gokhanozhim,

What is your version of Dynamo ?
Is “Get Type Parameter” a custom node ?


#12

Dynamo version is 1.3 yes custom node


#13

Maybe you can try, if this wil work for you.


#14


This works for me


#15

Thanks viktor !