# Python help - Get subelements

**URL:** <https://forum.dynamobim.com/t/python-help-get-subelements/27909>\
**Category:** Developers\
**Tags:** python, multistorystairs\
**Created:** [November 1, 2018, 3:56am UTC](https://forum.dynamobim.com/t/python-help-get-subelements/27909 "2018-11-01T03:56:45Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![Paul\_Wintour](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/paul_wintour/32/9381_2.png) [@Paul\_Wintour](https://forum.dynamobim.com/u/Paul_Wintour)\
**Post date:** [November 7, 2018, 6:32am UTC](https://forum.dynamobim.com/t/python-help-get-subelements/27909/18 "2018-11-07T06:32:14Z")

</div>

This appears to be all you need to get the stair element, from which you can get the topology (as one long list)

```
stid = mstr.GetAllStairsIds()
for i in stid:
	str1.append(doc.GetElement(i))

```

But if I try to get the landings and stair runs, it still revers back to the main elements which has been copied up into the multistorey stair. I really need to be able to identify the stair run and landing elements within the multistoreystair, otherwise it will be impossible to sort all the surfaces into any logical order

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

[Get subelements\_6\_Dynamo 1\_3.dyn](https://forum.dynamobim.com/uploads/short-url/OJ09EMYOXCs9n77ePtGFO9Rpz7.dyn) (9.8 KB)

---

_[View the full topic](https://forum.dynamobim.com/t/python-help-get-subelements/27909)._
