# How to get the ParameterType in a Project?

**URL:** <https://forum.dynamobim.com/t/how-to-get-the-parametertype-in-a-project/84940>\
**Category:** Developers\
**Created:** [January 13, 2023, 10:43am UTC](https://forum.dynamobim.com/t/how-to-get-the-parametertype-in-a-project/84940 "2023-01-13T10:43:31Z")\
**Posts on this page:** 2\
**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:** [January 13, 2023, 10:43am UTC](https://forum.dynamobim.com/t/how-to-get-the-parametertype-in-a-project/84940/1 "2023-01-13T10:43:32Z")

</div>

Hello,

How to get the ParameterType? _IsShared? IsFamilyParameter? IsInstance or TypeParameter?_ how can i get this information?

I collect rooms…

```auto
params = IN[0]

OUT = []

for i in params:
	OUT.append(i.IsShared)

```

KR

Andreas

 ![grafik](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/f/6f7a4fd42bf938c6423c62afc4961e936defa1ad.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:** [January 13, 2023, 3:56pm UTC](https://forum.dynamobim.com/t/how-to-get-the-parametertype-in-a-project/84940/2 "2023-01-13T15:56:42Z")

</div>

I don’t know if there’s a better way, but it looks like you can get that information from the `TypeId`.

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

> **Python**
>
> import clr  
> clr.AddReference(“RevitAPI”)  
> import Autodesk  
> from Autodesk.Revit.DB import \*
> 
> element = UnwrapElement(IN[0])  
> params = element.Parameters  
> isFamily = {}
> 
> for param in params:  
> name = param.Definition.Name  
> typeId = param.GetTypeId().TypeId  
> type = typeId.split(“:”)[0]  
> isFamily[name] = type
> 
> OUT = isFamily

Whether the parameter is instance or type will obviously come from whether the element was an instance or type.
