New user stumbling through some early experiments. I tried to search the community here for something on this topic, but did not find anything.
I thought it might be useful to use Dynamo to generate a selection of objects in a Revit project without manually selecting them. I found the Revit > Selection > All Elements of Category node, which requires the input of a Category, and outputs a list of elements. Tried using a String input node to provide the Category input (my sample Revit file had several Walls drawn in it, so I chose “Wall” as the category; that did not work. I then found the Revit > Elements > Category > Create > Category.ByName node, which has a Category output and a name input. The help for that node indicates that the name input requires a string, but my “Wall” text input did not work, nor did “Basic Wall”. (Warning: Category.ByName operation failed. Requested value ‘Wall’ was not found. ElementQueries.OfCategory operation failed. [Last line appears total of four times.])
I also tried to add Revit > Selection > Categories node, hoping this might have a list of categories from which I could choose, and then send that choice to the All Elements of Category node, but when I double click that in the Library to add it to my workspace, nothing is added and this text appears on the Console:
Failed to load built-in type
Unable to cast object of type ‘Dynamo.Nodes.Categories’ to type ‘Dynamo.Models.NodeModel’.
at Dynamo.Models.DynamoModel.CreateNodeInstance(String name)
Failed to create node ‘Categories’ (GUID: 9e768baf-c697-4f62-8c59-41bb02301a51)
Am I just providing the wrong name for the category that would select Walls, or am I missing something basic (or not so basic)? How should I be providing a Category for the All Elements of Category node?