How to assign a category with a code block

Hey guys, my problem is that dynamo player keeps switching my drop downs from the one that is saved the one that says “Curtain Systems - hidden lines” should be “Doors” i would like to know if i can get categories through the code block so dynamo cant change them!

1 Like

Try this

I did and it still gave me an error. Just left my desk ill have to send u the error tomorrow

Try using Revit.Category.ByName(“Doors”)

that didnt seem to work either

Use "Revit.Elements.Category.ByName(“Doors”) if you still have errors then use OOTB node this has same result as codeblock.

1 Like