LineStyleAttributes

Query nodes for extracting detailed information from LineStyleAttributes objects, including color, graphics style, pattern, name, and weight.

The LineStyleAttributes query nodes provide access to all properties of Revit Line Styles returned by LineStyle.AllAttributes or LineStyle.Create. Use these nodes to interrogate line style data including color assignments, the underlying GraphicsStyle element, line pattern elements, style names, and line weights. These query nodes enable you to audit existing line styles and extract properties for standardization workflows.


Color

A query node which returns the assigned Dynamo Color of the Line Style GraphicsStyle.

Inputs

lineStyleAttributesLineStyleAttributes

Outputs

ColorColor

Features

  • Returns the Dynamo Color of the Line Style GraphicsStyle

User Guide

Color example


GraphicsStyle

A query node which returns the wrapped Revit GraphicsStyle Element.

Inputs

lineStyleAttributesLineStyleAttributes

Outputs

ElementElement

Features

  • Returns the wrapped Revit GraphicsStyle Element

User Guide

GraphicsStyle example


LinePatternElement

A query node which returns the assigned line pattern Element of the GraphicsStyle. If the line pattern is the built-in Solid style, returns null as the Solid style is a special type that isn't represented as a line pattern in the Revit API but a special code that tells drawing and export codes to use solid lines rather than patterned lines.

Inputs

lineStyleAttributesLineStyleAttributes

Outputs

LinePatternElementLinePatternElement

Features

  • Returns the assigned line pattern Element of the GraphicsStyle

User Guide

LinePatternElement example


Name

A query node which returns the name of the Line Style GraphicsStyle.

Inputs

lineStyleAttributesLineStyleAttributes

Outputs

stringstring

Features

  • Returns the name of the Line Style GraphicsStyle

User Guide

Name example


Weight

A query node which returns the line weight of the Line Style GraphicsStyle as an integer.

Inputs

lineStyleAttributesLineStyleAttributes

Outputs

intint

Features

  • Returns the line weight of the Line Style GraphicsStyle

User Guide

Weight example