Getting the "Function" parameter of a Revit wall

Hi Everyone,

I am trying to get the “Function” type parameter of a Revit wall which I have managed to do. I receive a 0 or 1 value which I am aware of and now I am trying to convert this to “Exterior” or “Interior”. When I do however, regardless of the value, the python script I am using returns a “Core-Shaft” value.

Can anyone point me in the right direction here or give me an idea of why it is doing this?

Thanks very much in advance.

Mitch

do otherwise

1 Like

Beat me to it :smiley:

1 Like

Thanks very much Akli, works like a charm :slight_smile:

Any idea why the Python doesn’t work though, I am curious?

You need a nested for loop to read the values :slight_smile:

So for instance:

for i in item:
    temp = []
    for j in i:
        if j == 0:
            temp.append('Interior')
        ..(inseret conditionals)...
    lst.append(temp)

OUT = lst
1 Like

@Mitchell
you have to go through the list in the list

Capture

1 Like

Thank you everyone, got it!

Really appreciate the help!
Mitch

1 Like