cancel
Showing results for 
Search instead for 
Did you mean: 

How does GetAllObjectsOnLayer work

Builder
Builder

Hello, 

i was wondering how 

Session.getSession().Part.Layers.GetAllObjectsOnLayer() works?

 

Will it return everything thats in view, just stuff on the specific part, or will it return everything 

on the specified layer that is in the component assembly under the specified part?

1 REPLY

Re: How does GetAllObjectsOnLayer work

Siemens Phenom Siemens Phenom
Siemens Phenom

 

Since you are calling it on a specific part, it should return objects from that part.  I would not expect it to screen or filter objects that are outside of the current view or blanked.  I would just expect it to return anything in the part that is on the specified layer.

 

There is a note in the docs that says "The part must be the displayed part."