Shadow Parameter Globally Changed

Shadow Parameter Globally Changed

tdaltd
Advocate Advocate
338 Views
3 Replies
Message 1 of 4

Shadow Parameter Globally Changed

tdaltd
Advocate
Advocate

Other than using view templates, is there a way to change shadow density for all views in a project? It seems that my current default is 50% and I would like to make every shadow in the project 25%

 

I really should set this up properly in my starter template, but for now, changing the shadow parameter globally would be a big time saver.

 

Tom

0 Likes
339 Views
3 Replies
Replies (3)
Message 2 of 4

barthbradley
Consultant
Consultant

Shadows.png

0 Likes
Message 3 of 4

tdaltd
Advocate
Advocate

Thanks Bart

This is how I have been doing this but it is still view specific, which it should be!!!

However, I currently have over 4o views set up, including plans, elevations, sections and perspectives, in a number of different scales, etc. so it is painfully time consuming to do this for every view and if I set up templates for each type of view I would need to establish at least 12 unique view templates.

 

Is there a way to move that shadow slider for every view in the project, just one time and have every view adjusted?

 

T

0 Likes
Message 4 of 4

ralphdenhaan
Collaborator
Collaborator

Hi,

 

What version of Revit do you use? And what is your experience with Dynamo?

You can create a script where you collect all your views and create a list. Then put the list into this Python script:
- Change the value of 50 to 25, in your case.

 

import clr
clr.AddReference('RevitServices')
# Import DocumentManager
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

# The inputs to this node will be stored as a list in the IN variables.
doc = DocumentManager.Instance.CurrentDBDocument
views = IN[0]

#List with Views
if not isinstance(views, list):
	views = UnwrapElement([views])
else:
	views = UnwrapElement(views)
	
TransactionManager.Instance.EnsureInTransaction(doc)
#Shadow Intensity
for view in views:
	view.ShadowIntensity = 50
	
TransactionManager.Instance.TransactionTaskDone()

 

Select Accept as Solution and Likes are always welcome. 


Ralph den Haan, (Lazy) BIM Specialist


LinkedIn | LazyBIM Blog


 

0 Likes