Error getting category name Python ..! help

Good morning.
I am trying to get the category name of my elements that are inside the views… what am I doing wrong and how can I correct it.
Thanks for the support.

@AM3D.BIM.STUDIO ,

i think you have to unwrap your elements…

GetAllPlacedViews returns an element Id. Not the element.
use the Id to get the element.

Looks like you’re putting an empty list into your elevista list at line 40, which is in a loops so it is happening several times.

As a result when you start to iterate over the objects in elevista, the first thing the CPU finds is a list object, not an element.

Not sure what the intent of your plan was, perhaps try removing line 40 entirely.