# Python - Construct ReferenceArray

**URL:** <https://forum.dynamobim.com/t/python-construct-referencearray/81994>\
**Category:** Uncategorized\
**Created:** [October 12, 2022, 3:17pm UTC](https://forum.dynamobim.com/t/python-construct-referencearray/81994 "2022-10-12T15:17:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![m.owens](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@m.owens](https://forum.dynamobim.com/u/m.owens)\
**Post date:** [October 12, 2022, 3:17pm UTC](https://forum.dynamobim.com/t/python-construct-referencearray/81994/1 "2022-10-12T15:17:44Z")

</div>

Maybe you’ve already seen this thread, but I am trying to generate single-element slab-edges from a group of model curves. My issue is, I have no idea how to construct a ReferenceArray.

> [@Create NewSlabEdge](https://forum.dynamobim.com/t/create-newslabedge/39360/11):
>
> Hi Thomas, Unfortunately, that will essentially get me the same result. I am actually hosting the slab-edges to model curves. I will ask in the main forum. Thanks for all of your help so far! Cheers, Matt

> **[ReferenceArray Class](https://www.revitapidocs.com/2015/bc9192b5-6666-a8de-0128-87dae479fd6a.htm)**
>
> Online Documentation for Autodesk's Revit API: 2015, 2016, 2017, 2017.1, 2018

Has anyone done this? My python skills are very limited…

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [October 12, 2022, 3:21pm UTC](https://forum.dynamobim.com/t/python-construct-referencearray/81994/2 "2022-10-12T15:21:31Z")

</div>

Hi @m.owens,

It is very simple :

```auto
references = IN[0]

#Constructor of referenceArray
yourReferenceArray = ReferenceArray()

for reference in references :
	yourReferenceArray.Append(reference)

```

---

<div class="post-metadata">

**Author:** ![Thomas\_Mahon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_mahon/32/64209_2.png) [@Thomas\_Mahon](https://forum.dynamobim.com/u/Thomas_Mahon)\
**Post date:** [October 12, 2022, 3:22pm UTC](https://forum.dynamobim.com/t/python-construct-referencearray/81994/3 "2022-10-12T15:22:00Z")

</div>

In the same way you would instantiate any other class using Python:

`referenceArray = ReferenceArray()`

---

<div class="post-metadata">

**Author:** ![m.owens](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@m.owens](https://forum.dynamobim.com/u/m.owens)\
**Post date:** [October 12, 2022, 3:42pm UTC](https://forum.dynamobim.com/t/python-construct-referencearray/81994/4 "2022-10-12T15:42:28Z")

</div>

OMG…so easy…Thank you!!!
