# Function takes exactly 2 arguements (0 Given)

**URL:** <https://forum.dynamobim.com/t/function-takes-exactly-2-arguements-0-given/9961>\
**Category:** Uncategorized\
**Tags:** python\
**Created:** [February 28, 2017, 2:15pm UTC](https://forum.dynamobim.com/t/function-takes-exactly-2-arguements-0-given/9961 "2017-02-28T14:15:14Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Gui\_Talarico](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gui_talarico/32/10887_2.png) [@Gui\_Talarico](https://forum.dynamobim.com/u/Gui_Talarico)\
**Post date:** [March 2, 2017, 2:05pm UTC](https://forum.dynamobim.com/t/function-takes-exactly-2-arguements-0-given/9961/5 "2017-03-02T14:05:36Z")

</div>

Maybe this?

> [@Different ways of getting element Ids](https://forum.dynamobim.com/t/different-ways-of-getting-element-ids/7782/2):
>
> Hi @salvatoredragotta Both versions get the ElementId using the same method, which is the [.Id Property](http://www.revitapidocs.com/2015/9235095b-b7ae-b6e5-6cc2-2b8d397644de.htm) (any object that inherits from Element has it). What’s different, is what they do with the resulting ElementId objects retrieved. The method you use, will depend what you will do with the collection of ElementIds. More details below. The 2nd in your example, creates a list ([built-in Python list](https://docs.python.org/2.7/tutorial/datastructures.html)) which is a generic, container native to Python, the other creates a List, a .NET data-type. Pyt…

---

_[View the full topic](https://forum.dynamobim.com/t/function-takes-exactly-2-arguements-0-given/9961)._
