Line Category

Line Category

hliS658H
Collaborator Collaborator
1,326 Views
6 Replies
Message 1 of 7

Line Category

hliS658H
Collaborator
Collaborator

When I create new line styles, I noticed I can not add "<>" into the new line style names like the ones built in the program.  I assume that is the reason that my newly added line styles are not included in the line category list in dynamo.  Is there a way to fix this? Thank you.

hliS658H_1-1676183297171.png

hliS658H_2-1676183561784.png

 

 

1,327 Views
6 Replies
Replies (6)
Message 2 of 7

barthbradley
Consultant
Consultant

I don't understand the question. Bracketed Line Styles just indicate the legacy/system line styles that cannot be removed.  They are hard-coded.  

0 Likes
Message 3 of 7

ToanDN
Consultant
Consultant

<> are reserved for system line styles. You can certainly include any line styles in a dynamo script.  Which node are you using?

0 Likes
Message 4 of 7

hliS658H
Collaborator
Collaborator

I am using Categories.

My intention is to calculate the length of the building perimeter, so I create a line style named as building perimeter. I was expecting this line style will show up in the pull down list as other line style but unfortunately, both line styles I created are not there.

 

hliS658H_0-1676237389415.png

 

0 Likes
Message 5 of 7

ToanDN
Consultant
Consultant

The node you use is a preselected list and only shows OOTB styles.

 

Search for the node Select Model Lines by Style, then use a code block node to enter the name of the line style.

 

ToanDN_0-1676320656680.png

 

With that said, there is an OTTB dynamo script under Dynamo Player that calculate my multiple lines that you select.

 

 

0 Likes
Message 6 of 7

hliS658H
Collaborator
Collaborator

hliS658H_1-1676262291650.png

 

I got error messages; I am new to Dynamo, know limited nodes, no idea how to fix it.

 

hliS658H_0-1676262245258.png

 

0 Likes
Message 7 of 7

d.ahmed.LW
Advocate
Advocate

@hliS658H I think these 2 posts from Dynamo Forum could guide you in the right direction or atleast give you a starting point

 

Get line style by name - Archi-Lab - Packages - Dynamo (dynamobim.com)

 

Get all project Line Styles and attributes - Revit - Dynamo (dynamobim.com)

Do close the topic if this helps. 

0 Likes