Retrieve View Range Parameters


#1

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


#2

Hello,
check this out :slight_smile:




#3

Thank you so much Tomasz!

This is great.

Cheers
Giovanni


#4

Not Working… can you check this error message it showing


How to get info which windows are above cut plane in dynamo?
#5

Can you show the preview for your active view?


#6

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


#7

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

Thank you
Peter


#8

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:


#9
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.


#10

Thanks for your response!


#11

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.


#12

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


#13

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