Convert a list of elements to a list of the names?

I hope I worded that right. I managed to get a list of parameter elements, but I cant seem to figure out how to convert that list into a list of the names of the parameters?

Have you tried the Element.Name node? Or check the parameter’s parameters for a parameter you can use GetValueByParameterName node on?

This node may be interesting: Dynamo Dictionary

Did a search for that parameter in the Library and nothing comes up. Is that a node or setting of some sort?

Got an error in that node: Warning Parameter name expects argument types (Revit.Elements.parameter) But was called with (System.Objects)

I used a Python script to get the list of parameters. Maybe I did it wrong.

Enable Python support and load DesignScript library

import clr
clr.AddReference(‘ProtoGeometry’)
from Autodesk.DesignScript.Geometry import *
clr.AddReference(‘RevitAPI’)
from Autodesk.Revit.DB import*
clr.AddReference(‘RevitServices’)
from RevitServices.Persistence import DocumentManager
doc = DocumentManager.Instance.CurrentDBDocument

out_list = doc.FamilyManager.GetParameters()

dataEnteringNode = IN

OUT = out_list

Maybe try the out of the box node Element.Parameters (Dynamo Dictionary) instead of the Python?

Element.Parameters won’t get you family parameters in a family doc (I think). Clockwork‘s Element.Name+ node should be able to return family parameter names. If not, Clockwork also has a node called FamilyParameter.Properties (or something like that) which definitely includes the param name.

2 Likes

Ah! Didn’t see this was a family document. Good catch @Andreas_Dieckmann!

That worked. Thank you!