Retrieve View Range Parameters

Hi everyone,

Is there a way to extract the View Range values for a view?

i.e.
View Range Cut Plane
View Range Cut Plane Offset
View Range Level Above
View Range Level Above Offset
View Range Level Below
View Range Level Below Offset

Thank you
Giovanni

Hello,
check this out :slight_smile:



Thank you so much Tomasz!

This is great.

Cheers
Giovanni

Not Working… can you check this error message it showing

Can you show the preview for your active view?

thanks my active view was elevation now i change to plan its working now.
Thank you @Nick_Boyts

Hi everyone,
How to change this script for a list of views?

Thank you
Peter

Hi Peter,

MEPover has two nodes that retrieve the VIewRange for a list of views.

To answer your question, you should loop through the list of views and append each result into a list:

if isinstance(IN[0], list):
    Viewlist = UnwrapElement(IN[0])
else:
    Viewlist = [UnwrapElement(IN[0])]

for v in Viewlist:
    #indent code from line 20 onwards, replace a with v

It’s also worth noting that if the output returns -1, -2, -3 or -4, this translates to ‘Unlimited view depth’, ‘Level Above’, ‘Same as Plan Level’, ‘Level Below’ respectively (for the .GetLevelId ones). I cannot remember how i know this so i don’t know who to give credit to unfortunately.

Thanks for your response!

Hello Tomasz,
I am trying your script but the output of all the offset are giving me a very weird, wrong offset values.
Please see attached.

mm to feet conversion - revits internal units, you can see that @Tomasz_Puchala has accommodated for this

Thanks Tom, I just noticed, do you know if there is any set view range node or python script that works???