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: 

FindInserts what does includeShadows flag do?

9 REPLIES 9
SOLVED
Reply
Message 1 of 10
hzamani
1568 Views, 9 Replies

FindInserts what does includeShadows flag do?

 

Hi,

 

Curious what does the includeShadows flag do in FindInserts method of the HostObject class.

ttt.jpg

The documentation says "True if shadows should be included in the return." But this doesn't make any sense to me.

Could anyone possibly shine some light on this?

 

 

9 REPLIES 9
Message 2 of 10
jeremytammik
in reply to: hzamani

Good question. Thank you for asking.

 

I see two more of the same in the revitapidocs page:

 

https://www.revitapidocs.com/2020/58990230-38cb-3af7-fd25-96ed3215a43d.htm

 

  • Albano Gheller (8 months ago): What are shadows and shared embedded?
  • Александр Пекшев (2 years ago): what is Shadows??

 

I'll ask the development team for you.

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 10
jeremytammik
in reply to: hzamani

The development team replied:

 

An internal WallShadowCutoutGStep is created when 2 walls are joined, e.g., by Modify > Geometry > Join, and then a window is placed on one wall.

 

In that case, Revit will cut an opening on the other joined wall, as you can see in this picture:

  

findinserts_wall_shadow_cutout.png

 

For this API - FindInserts, here is a short demo - I try to find the Inserts on the joined wall but not the wall with the window.

 

findinserts_include_shadow.gif

  

The window instance (ID: 354965) is returned if includeShadows is true, and nothing returned for false.

 

Many thanks to Phil Xia for this detailed explanation!

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 4 of 10
Revitalizer
in reply to: jeremytammik

Thank you for bringing light into the shadow 🙂

 

Rudi




Rudolf Honke
Software Developer
Mensch und Maschine





Message 5 of 10
hzamani
in reply to: jeremytammik

Thank you very much Jeremy for following this up and the complete answer.

Makes much sense now.

Message 6 of 10
amir.aroesti
in reply to: jeremytammik

Hi @jeremytammik ,

 

And what about includeSharedEmbeddedInserts ?

Message 7 of 10
jeremytammik
in reply to: amir.aroesti

Have you searched the Internet for the answer yourself yet? I see a number of hits when I try it out...

  



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 8 of 10
amir.aroesti
in reply to: jeremytammik

the fact that I found out this post of related subject can indicate that I did try to search the internet before.

maybe not good enough but I tried.☹️

Message 9 of 10
jeremytammik
in reply to: amir.aroesti

Okey-doke. Well, I cannot do much more myself. Searching for 'Revit includeSharedEmbeddedInserts' turns up this:

  

  

That shows an image showing a sample result with the following explanation:

  

Get the door, window, or other inserts that are hosted in the embedded wall.

    



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 10 of 10
amir.aroesti
in reply to: jeremytammik

Thanks @jeremytammik 

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

Post to forums  

Autodesk Design & Make Report