# How to select all objects and set their layer?

**URL:** <https://forum.dynamobim.com/t/how-to-select-all-objects-and-set-their-layer/79261>\
**Category:** Civil 3D\
**Tags:** dynamo\
**Created:** [July 28, 2022, 10:56pm UTC](https://forum.dynamobim.com/t/how-to-select-all-objects-and-set-their-layer/79261 "2022-07-28T22:56:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssimpsonHU35B](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@ssimpsonHU35B](https://forum.dynamobim.com/u/ssimpsonHU35B)\
**Post date:** [July 28, 2022, 10:56pm UTC](https://forum.dynamobim.com/t/how-to-select-all-objects-and-set-their-layer/79261/1 "2022-07-28T22:56:57Z")

</div>

I want to select every object in modelspace and change their layer to, say, 0.  
I am trying this screenshot but the objects are listed as strings and not real objects.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/3/03852165c98a4da32676d24a0436fd3423902cfd.png)

---

<div class="post-metadata">

**Author:** ![KirkWM](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kirkwm/32/104406_2.png) [@KirkWM](https://forum.dynamobim.com/u/KirkWM)\
**Post date:** [July 28, 2022, 11:23pm UTC](https://forum.dynamobim.com/t/how-to-select-all-objects-and-set-their-layer/79261/2 "2022-07-28T23:23:14Z")

</div>

Hi there, you’re on the right path, looks like you’re missing the “block” input on the all objects on layer node, it needs document.current node connected to modelspace node and connect modespace node to the block

---

<div class="post-metadata">

**Author:** ![KirkWM](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kirkwm/32/104406_2.png) [@KirkWM](https://forum.dynamobim.com/u/KirkWM)\
**Post date:** [July 29, 2022, 3:23pm UTC](https://forum.dynamobim.com/t/how-to-select-all-objects-and-set-their-layer/79261/3 "2022-07-29T15:23:52Z")

</div>

May want to do something like this:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/0/70d22915610b7ef9bd6b69e2d8c3ecaf27a3b76f.png)
