Level elevation node / getset descripter not callable

Hi all,
Im getting an error when Im using the node to read the elevation of a node in a python script.
When I use it in a regular Dynamo node it does work but in a python script it gives me the error ‘getset descripter not callable’
Can someone maybe see what I`m missing?

Regards,
Wouter Hilhorst

Hi @wouter.hilhorst,

You have to unwrap the levels.
Unwrapping
Elevation is a property and doesn’t need parentheses (which are for methods).

import clr
clr.AddReference('RevitAPI')
import Autodesk
from Autodesk.Revit.DB import *

#Preparing input from dynamo to revit
V2 = UnwrapElement(IN[3])
V3=[]
for itm in V2:
	temp=itm.Elevation
	V3.append(temp)

OUT = V3

2 Likes

@wouter.hilhorst
Probably there is a conflict with two namespace and Class Dynamo API and Revit API in your code
Level.Elevation() it’s a Dynamo API method

1 Like

Thanks!