Multi-Category Tags string not working for Category.ByName

I have created a dynamo script that works perfectly fine, but I have an issue with the Multi-Category Tags. There is the issue with using drop-downs across different versions that the drop-downs will change depending what Revit version you are in, so I have combated this in other scripts by using String > Category.ByName > All Elements of Category and they have worked fine (at least Sheets is what my other scripts are using). When I try to do this with Multi-Category Tags Dynamo gives me the “Warning: Category.ByName operation filed. The selected category is not valid in this document.” However I have the name typed exactly as it is shown in the Categories drop down. I tried both Code Block and String. Is this due to Multi-Category Tags not being a “built-in” category name that is in the name selector?

You have to use the “Built-In Name” as the node describes. That is not the same as you see in the categories node.

image

Use the API Reference:
http://www.revitapidocs.com/2018.1/ba1c5b30-242f-5fdc-8ea9-ec3b61e6e722.htm

2 Likes

Wonderful. Thank you that worked!