ERROR while accessing fixture units of pipes using revit API

Hi all I am trying to get fixture units of pipes using revit api.I am able to access the parameter but while trying to retrieve the value of parameter(shown with # comment in snapshot), I am getting an error saying none type object has no attribute asdouble…can anybody help to resolve.

got the error one among the element passed to the function was not pipe…there was a pipe system in the list.

What is your list of elements? It sounds like one of your elements is missing that parameter.

1 Like

yes…there was a piping system element.