Color Room using Direct shape geometry

basically, im following this video on youtube

And i got this error in DirectShape.ByGeometry node

Traceback (most recent call last):
File “”, line 108, in NewDS_R17
IndexError: index out of range: 0

Anyone please help me. Im stuck here :pensive:

Choose another category
you can not create a solid in revit in a room category

I had tried Mass, Generic models, Spaces as category. It is giving same result.

Here is a small example
uses Dynamo nod “DirectShape.ByGeometry”