Changing Subcatagories linetype color in family with dynamo

I am very new to using Dynamo and working with graphs, but I am looking to try to change the subcategory line color via Dynamo. Looking to see if anyone else has done this before and or has a graph that I could reference.

Hi @JeremyH57,

You can use the Set SubCategory Properties node in Genius Loci package for that purpose.

Hey thank you for the Node and package reference. When I go to run the script there are no errors but still wont change the line color of the sub category. Any advice ? Like I said I am very new to Dynamo.

Hi Jeremy,

It should work. Which version of Dynamo do you use ?

Can you check that the default values ​​are enabled ?
Default%20value

Alban, where you are getting “graphic style” in the set subcategory i am just getting “function” here is the version of Dynamo : image

Can you share your graph (.dyn file) ?
I will check the default values.

test.dyn (6.2 KB)

test2.dyn (6.2 KB)

Try this. The default value was not enabled for the material input.

when I use the file you sent the Set SubCategory comes up “null”

There is a glitch with the input Material with your dynamo version.
Can you add a codeblock with a null and connect it to the input Material ?

Yeah I haven’t got a clue as to what is going on;

test2.dyn (6.7 KB)

Can you add a sample Revit file also ?

Sorry for the inconvenience. I will investigate to understand the issue.

Receptacle - BA.rfa (348 KB)

No worries !!! I’m new at this and need the help.

Okay. It was indeed a problem with the default input. Not the Material input but the LinePattern one.



test2.dyn (7.8 KB)

1 Like

that worked thank you so much !

Hi Alban
I think I am having a similar problem as jeremy
using the genius loci colour change for filled region and it does not seem to read the filled region input - i keep getting ‘function’
trying to change a series of filled region colours with values i am reading from an excel sheet.
any help appreciated!

FilledRegionsByWallTypeColour.dyn (60.6 KB)