Since we use different views with different scales on 1 sheet I’m trying to fill in the scale on the sheet with this script to avoid the nasty “Scale as indicated” and to do it without any mistakes. In general the script works. It doesn’t take in account the scale of the Legens Views and 3D views ( camera standpoint views ) and when there is something on the Sheet without a scale it fills in blank. However, it still recognizes 3D aerial views with a scale resulting in an unnecessary “/” in my list. So I’m trying to get that one out but I’m stuck. I can filter them out with list.Transpose but somehow my filter keeps giving back empty lists. Number 29 shows the problem I’m talking about. Any suggestions on what to do next, or what I’m doing wrong, is much appreciated!
To filter out the Sheets we want to print, and to have the correct order of drawnings. We have different schedules for example say construction drawnings and ‘sales’ drawnings. And with the same schedule we can rewrite the names in Explorer so we can put them easy together in a booklet.
I am not sure what you mean, but if you mean to manually overwrite the scale parameter that Revit uses then I am already doing that. I want to filter out the given scale of a 3D aerial view from the list.
the scales are a parameter I fill in by hand. It is not the automated function from Revit since that gives the Scale as indicated on your Sheet if you are hinting to that.
That is exactly what this script is for, which works fine when I have no 3D aerial views on Sheets. But in this project I have some and then it fills in blank, which creates a / in my drawning list which I don’t want. So basically I’m trying to filter out the scale of 3D aerial views.
Yep, just make a script here that updates all the Sheets for scales and nothing else.
Find all the Sheets.
Ask them for their Viewports
Ask the Viewports for their View.
Ask the View for it’s Type.
Filter the Viewports by the wanted/unwanted Types
Ask the wanted viewports for their Scales and combine those into a string.
Push to Sheet.