Parameter from ParameterElement

How get Parameter from ParameterElement ?

Are you looking for the parameter value (AsDouble(), AsString() etc.) or can Parameters actually have parameters? Maybe you can provide an example?

i have a ElementId of parameter
exactly get from this method:

i try next this:
ParameterElement = doc.GetElement(ElemendId) ;

(I cant do like this : Parameter = doc.GetElement(ElemendId) ; )?
and later i want get => parameter


I’m not sure if/how you can get the parameter from the Id but I managed to do this way;

1 Like

@salvatoredragotta , thanks, may be its help me to find solution :slightly_smiling_face:

I think we can get Autodesk.Revit.DB Parameter only from element selected in revit.
If i am wrong let me know

@til.shviger If you share what you are trying to do we can help more

Get all parameters exactly as Autodesk.Revit.DB.Parameter

When i use this method:


In my opinion , I get list with ElementId => and after convert to =>doc.GetElement(ElementId) => i get ParameterElement or SharedParametrElement => next I need get Autodesk.Revit.DB.Parameter (this my main question)