Get all Parameters Name in Revit

Hi everyone,

I can easily get all BuiltInParameter with this scripts:


import clr
import System

clr.AddReference(“RevitServices”)
import RevitServices
from RevitServices.Persistence import DocumentManager

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

clr.AddReference(‘RevitAPIUI’)
import Autodesk

doc = DocumentManager.Instance.CurrentDBDocument

BIPs = System.Enum.GetValues(BuiltInParameter)

OUT = BIPs


I would like to know if I can do the same thing but with the revit parameters name?

I’ve tried to filter the “Parameter” class but I got this error…

image

This is the script that I tried:


import clr

clr.AddReference(“RevitServices”)
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

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

doc = DocumentManager.Instance.CurrentDBDocument

Parameters = FilteredElementCollector(doc).OfClass(Parameter).ToString()

OUT = Parameters


If you have any idea or solution, please let me know!

Thank you in advance!

Nevermind, I got it without Python. I needed to search the label and not the “name” :