FindInserts what does includeShadows flag do?

hzamani
Advocate
Advocate

FindInserts what does includeShadows flag do?

hzamani
Advocate
Advocate
 

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?

 

 

0 Likes
Reply
Accepted solutions (1)
1,572 Views
9 Replies
Replies (9)

jeremytammik
Autodesk
Autodesk

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

jeremytammik
Autodesk
Autodesk
Accepted solution

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

Revitalizer
Advisor
Advisor

Thank you for bringing light into the shadow 🙂

 

Rudi




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes

hzamani
Advocate
Advocate

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

Makes much sense now.

0 Likes

amir.aroesti
Advocate
Advocate

Hi @jeremytammik ,

 

And what about includeSharedEmbeddedInserts ?

0 Likes

jeremytammik
Autodesk
Autodesk

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

0 Likes

amir.aroesti
Advocate
Advocate

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.☹️

jeremytammik
Autodesk
Autodesk

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

0 Likes

amir.aroesti
Advocate
Advocate

Thanks @jeremytammik 

0 Likes