Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Disable view shadows casting

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
964 Views, 3 Replies

Disable view shadows casting

Hi,

 

Is there any way to enable or disable shadow casting in a specific view ?

We can modify almost all view's Graphic Display Options using this methods:

 

 

View view = ...

view.SetBackground(ViewDisplayBackground.CreateSky());
view.GetSketchyLines().EnableSketchyLines = true;
view.DisplayStyle = DisplayStyle.HLR;

But I can't see anything related to options "Cast Shadows" and "Show Ambient Shadows"

 

Where are these options hidden in the API ?

 

Btw, I can't see neither a way set a view's background to None

There is

ViewDisplayBackground.CreateSky()
ViewDisplayBackground.CreateGradient(...)
ViewDisplayBackground.CreateImage(...)

But I don't see any "CreateNone()" and calling view.SetBackground(null) throws an Exception

 

Thanks 

3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

hmm, you can always use a workaround to apply a view template that doesn't have shadows on.
Message 3 of 4
sobon.konrad
in reply to: Anonymous

I am going to make an assumption that enabling shadows and ambient occlusion and well as ambient light intensity is not possible via API. Can someone correct me if I am wrong? Thanks! 

Message 4 of 4
Anonymous
in reply to: sobon.konrad

Hello,

Is there any news about the missing API to activate [Shadows On] & [Ambient Light] ?

I don't see improvement on Revit-2021.

Can someone correct me if I am wrong?

Thanks!

Tags (2)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Rail Community