Export list of material by Views from Revit to excel

With help of the Dynamobim community I’ve build the script for exporting the List of materials for pipes. It works!

I’m trying to upgrade it in a way the script will export only elements from certain view and not from the whole project.

I’ve tried Schedule.GetData from Bimorphnodes with Views but I don’t know where to integrate them. I’

I’m sharing my scipt. Maybe someone will find it useful.

N - 0 - Nomenclature tuyauteries.dyn (195.1 KB)