All element of category in view error : The type initializer for threw an exception

In Revit 2022.1.3 I use node “All element of category in view” to get element but error

image

I dont know why but I tried use python Script is solved

1 Like

Share the error message, we can’t see anything wrong in those screenshots.

My guess is the view provided isn’t valid for that category.

2 Likes

Hi Gavin!
Sorry but error only in japanese, in english is “The type initializer for threw an exception”

I tested follow below solution, solved!
(because my add-in)

“The Type initializer for ‘’ threw an exception.” when trying to Get License or Export from Point Layout within Revit | Point Layout | Autodesk Knowledge Network

1 Like

Hey,

Just a small thing, the output from the Python node is a List containing the item, perhaps that affected it?

Kind regards,

Mark

1 Like

I get the same issue, and “All elements in the active view” return an empty list. Using this Python actually works, also list.Create works. However, after using Python and list create, I tried removing them and directly connecting the category, and it worked.