# Get all Parameter Names and values(object-type)?

**URL:** <https://forum.dynamobim.com/t/get-all-parameter-names-and-values-object-type/76877>\
**Category:** Developers\
**Created:** [May 24, 2022, 3:25pm UTC](https://forum.dynamobim.com/t/get-all-parameter-names-and-values-object-type/76877 "2022-05-24T15:25:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [May 24, 2022, 3:25pm UTC](https://forum.dynamobim.com/t/get-all-parameter-names-and-values-object-type/76877/1 "2022-05-24T15:25:33Z")

</div>

Hello,

how can all Parameters? i mean see by name like design script is doing it `x.Parameters[0]`

```auto
import clr
import sys
sys.path.append('C:\Program Files (x86)\IronPython 2.7\Lib')
import System
from System import Array
from System.Collections.Generic import *
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
clr.ImportExtensions(Revit.GeometryConversion)
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager 
from RevitServices.Transactions import TransactionManager 

clr.AddReference("RevitAPI")
clr.AddReference("RevitAPIUI")

import Autodesk 
from Autodesk.Revit.DB import *
from Autodesk.Revit.UI import *

doc = DocumentManager.Instance.CurrentDBDocument
uiapp = DocumentManager.Instance.CurrentUIApplication 
app = uiapp.Application 
uidoc = uiapp.ActiveUIDocument

#Boilerplate Code
my_element = UnwrapElement(IN[0])
element_parameters = my_element.Parameters
OUT = element_parameters

```

 ![grafik](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/4/44a0363b6e9f87d2b01a5d0c51685992d0b2b4cb.png)

f.e. when i want to see also the values and object type

Have i to do it parameter by parameter or is it possible to get all in one ?

> **[Family Parameters](https://dynamopythonprimer.gitbook.io/dynamo-python-primer/4-revit-specific-topics/working-with-parameters/instance-parameters)**
>
> Families are an intrinsic part of any Revit model; being able to access their parameters is a vitally important skill when coding for Revit.

KR

Andreas

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [May 24, 2022, 3:32pm UTC](https://forum.dynamobim.com/t/get-all-parameter-names-and-values-object-type/76877/2 "2022-05-24T15:32:00Z")

</div>

The API method returns the parameter elements, which is what you’re seeing. In order to see the parameter name and/or value you’ll have to query them individually. The name you should be able to get just by `param.Name`. The values can be a little tricky because each parameter will be a different type and therefore require a different `As[Type]` method to return a “legible” value.

Look at what’s available from the `Parameter` class and it should make more sense.

> **[Parameter Members](https://www.revitapidocs.com/2022/c0343d88-ea6f-f718-2828-7970c15e4a9e.htm)**
>
> Online Documentation for Autodesk's Revit API: 2015, 2016, 2017, 2017.1, 2018

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [May 24, 2022, 3:37pm UTC](https://forum.dynamobim.com/t/get-all-parameter-names-and-values-object-type/76877/3 "2022-05-24T15:37:45Z")

</div>

![2022-05-24_17h34_50](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/8/586336e3d5f7efc871d714a0f8989c9ca42abd57.png)

@Nick_Boyts , So i can go one by one

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [May 24, 2022, 3:40pm UTC](https://forum.dynamobim.com/t/get-all-parameter-names-and-values-object-type/76877/4 "2022-05-24T15:40:14Z")

</div>

Well you’d just use a loop, but yes. You have to go through each parameter to get it’s name and value individually. Same as looping through each element to get its list of parameters.

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [May 24, 2022, 3:43pm UTC](https://forum.dynamobim.com/t/get-all-parameter-names-and-values-object-type/76877/5 "2022-05-24T15:43:26Z")

</div>

@Nick_Boyts

```auto
my_element = UnwrapElement(IN[0])
element_parameters = my_element.Parameters
IfcGuid = my_element.LookupParameter("IfcGUID")
parameter_value = IfcGuid.AsString()
OUT = "IfcGUID: " + parameter_value

```

same issues with IsInstance …

![2022-05-24_17h43_12](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/5/f5021d138e60dbc15ee23cdb493bf8a4fe7b9391.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [May 24, 2022, 3:49pm UTC](https://forum.dynamobim.com/t/get-all-parameter-names-and-values-object-type/76877/6 "2022-05-24T15:49:26Z")

</div>

I don’t follow. Is that not what you’re after? The parameter name and it’s value?

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [May 24, 2022, 3:50pm UTC](https://forum.dynamobim.com/t/get-all-parameter-names-and-values-object-type/76877/7 "2022-05-24T15:50:09Z")

</div>

yes and the object type finaly @Nick_Boyts

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [May 24, 2022, 3:53pm UTC](https://forum.dynamobim.com/t/get-all-parameter-names-and-values-object-type/76877/8 "2022-05-24T15:53:09Z")

</div>

Take a look at the members available to `Parameter` elements in the link I sent you. I believe there are a couple of ways to get this information depending on what version of Revit you’re using and how you want to get it.

---

<div class="post-metadata">

**Author:** ![SeanP](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/seanp/32/42560_2.png) [@SeanP](https://forum.dynamobim.com/u/SeanP)\
**Post date:** [May 25, 2022, 4:31am UTC](https://forum.dynamobim.com/t/get-all-parameter-names-and-values-object-type/76877/9 "2022-05-25T04:31:51Z")

</div>

Just to clarify here, the x.Parameters[0] in design script is actually calling a method on the elements that is returning the Name and Value. The my\_element.Parameters in your python is returning a list of Revit DB parameter elements that then need to be queried as @Nick_Boyts indicated. These two “Parameters” are not the same.
