How to Get Parameters of a Line Element (e.g., Line Style)

I’m working in Dynamo for Revit and I have the Element ID of a line (category: Lines) that has a Line Style assigned (e.g., Ceiling Height Transition).

I want to retrieve that element in Dynamo using its ID and then read its parameters, specifically the Line Style.

Here’s what I’ve tried:

  • Used ElementById to get the element
  • Tried Element.Parameters and Element.GetParameterValueByName("Line Style")

But I’m not sure if I’m doing it right, or if Line Style is stored as a type parameter or something else.

How can I correctly access the Line Style and other parameters of this element in Dynamo?

Any help or example graphs would be appreciated!


The line in the center of the wall

Here’s both an OOTB way with nodes and a way with the Data-shapes custom node.

Hope this helps!

Thank you for your response. I want to retrieve curve endpoints of certain lines. is it possible to specifically look at every instance in dynamo?


These are the parameters of the selected line

It is possible. You would need to collect the line geometry from the Revit element with a CurveElement.Curve node, and from there, you’d have the full array of geometry nodes related to curves, including getting line end points.

In the previous screenshot, at the start, I collect all elements of the category line in the project with a “categories” and “all elements of category” node.