LineStyle
Create and manage Revit Line Styles programmatically, controlling attributes like weight, color, and patterns.
The LineStyle nodes provide control over Revit Line Styles through Dynamo. Report all existing line styles in your document and access their attributes using LineStyleAttributes query nodes, or create new line styles by specifying name, weight, pattern, and color. These nodes enable automated line style management for standardizing project graphics and maintaining consistent documentation standards.
AllAttributes
Gets all the Revit Line Styles in the document and returns a list of LineStyleAttributes which can be queried to access each Line Style name, weight, pattern element and colour and the line style (GraphicsStyle) element itself.
Inputs
refreshboolOutputs
LineStyleAttributes[]LineStyleAttributes[]Features
- Report all the Revit Line Styles in a document
- Use the LineStyleAttributes query nodes to interrogate the result
- Use the refresh toggle to update the list if new Line Styles are added to the project
User Guide
Note: video shown above is from older versions of BimorphNodes and does not show the LineStyleAttributes output
Create
Create a new Line Style in a Revit document by inputting a name, line weight, pattern element and Color.
Inputs
namestringweightintlinePatternLinePatternElementcolorColorOutputs
LineStyleAttributesLineStyleAttributesFeatures
- Create new a Line Style by inputting a name, line weight, pattern and Color
- Returns a LineStyleAttributes instance which enables the new line style to be queried