Get All views - Id's,Names

HI all,

I am trying to get all views thier ID’s,view Type and names through python script.But i am getting “Null” result.can anyone suggest me the python script…
Capture

Hi @jagadeesh116 maybe try add .ToElements() like:

allViews = FilteredElementCollector(doc).OfClass(View).ToElements()

, modify your looping, add a condition for 3d view template,…

Cheers

1 Like

@jagadeesh116

The problem is your OUT .
Try this:

Views =
for v in view:
Views.append(your code)

OUT = Views

I am using my phone, so I can’t use tabs

And check this post :slight_smile:

1 Like