# Is there a way to get all objects in Model Space?

**URL:** <https://forum.dynamobim.com/t/is-there-a-way-to-get-all-objects-in-model-space/77789>\
**Category:** Civil 3D\
**Created:** [June 19, 2022, 1:20pm UTC](https://forum.dynamobim.com/t/is-there-a-way-to-get-all-objects-in-model-space/77789 "2022-06-19T13:20:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rpriceAZEG6](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@rpriceAZEG6](https://forum.dynamobim.com/u/rpriceAZEG6)\
**Post date:** [June 19, 2022, 1:20pm UTC](https://forum.dynamobim.com/t/is-there-a-way-to-get-all-objects-in-model-space/77789/1 "2022-06-19T13:20:45Z")

</div>

I’m looking to check for objects actually used in the model space. I have googled for an answer come across the following code:

```
            bt = t.GetObject(db.BlockTableId, OpenMode.ForWrite)
            btr = t.GetObject(bt[BlockTableRecord.ModelSpace], OpenMode.ForWrite)

```

but the second line does not appear to work and I cannot determine why. Is there another way to determine if an object exists in model space?

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [June 19, 2022, 2:12pm UTC](https://forum.dynamobim.com/t/is-there-a-way-to-get-all-objects-in-model-space/77789/2 "2022-06-19T14:12:16Z")

</div>

Is it a requirement to do it in Python? If not, you can do it like this with nodes:

Document.Current → Document.ModelSpace → Block.Objects
