# Height & Width Parameters not being extracted for Doors?

**URL:** <https://forum.dynamobim.com/t/height-width-parameters-not-being-extracted-for-doors/76752>\
**Category:** Revit\
**Created:** [May 20, 2022, 6:30pm UTC](https://forum.dynamobim.com/t/height-width-parameters-not-being-extracted-for-doors/76752 "2022-05-20T18:30:30Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![neil.mackennon](https://avatars.discourse-cdn.com/v4/letter/n/c37758/32.png) [@neil.mackennon](https://forum.dynamobim.com/u/neil.mackennon)\
**Post date:** [May 20, 2022, 6:30pm UTC](https://forum.dynamobim.com/t/height-width-parameters-not-being-extracted-for-doors/76752/1 "2022-05-20T18:30:30Z")

</div>

Dynamo is not recognizing the height or width parameter? There are multiple different door types in the model and we are trying to get all the heights and widths to help us create quick door elevations but due to the difference in types they have different parameters. The only parameters which we can use that are consistent are the “Height” & “Width” parameters yet they do not seem to be picked up by dynamo.

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

---

<div class="post-metadata">

**Author:** ![neil.mackennon](https://avatars.discourse-cdn.com/v4/letter/n/c37758/32.png) [@neil.mackennon](https://forum.dynamobim.com/u/neil.mackennon)\
**Post date:** [May 20, 2022, 6:31pm UTC](https://forum.dynamobim.com/t/height-width-parameters-not-being-extracted-for-doors/76752/2 "2022-05-20T18:31:06Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/2/1204b410e62a862909d5528e317b80e35d116433.png)

---

<div class="post-metadata">

**Author:** ![neil.mackennon](https://avatars.discourse-cdn.com/v4/letter/n/c37758/32.png) [@neil.mackennon](https://forum.dynamobim.com/u/neil.mackennon)\
**Post date:** [May 20, 2022, 6:31pm UTC](https://forum.dynamobim.com/t/height-width-parameters-not-being-extracted-for-doors/76752/3 "2022-05-20T18:31:39Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/7/77deba7fabd2cdcf237aaa6498da7121d86c9ca4.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 20, 2022, 7:00pm UTC](https://forum.dynamobim.com/t/height-width-parameters-not-being-extracted-for-doors/76752/4 "2022-05-20T19:00:24Z")

</div>

In the future, please try searching for similar questions before posting. This question has been asked and answered many times already.

Width and Height are `TypeParameters` which means they exist in the `FamilyType`, not the `FamilyInstance`. You need to get the `FamilyTypes` of each door first.

---

<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 20, 2022, 7:12pm UTC](https://forum.dynamobim.com/t/height-width-parameters-not-being-extracted-for-doors/76752/5 "2022-05-20T19:12:26Z")

</div>

@neil.mackennon , use archilab package Get Type Parameter

---

<div class="post-metadata">

**Author:** ![neil.mackennon](https://avatars.discourse-cdn.com/v4/letter/n/c37758/32.png) [@neil.mackennon](https://forum.dynamobim.com/u/neil.mackennon)\
**Post date:** [May 20, 2022, 8:05pm UTC](https://forum.dynamobim.com/t/height-width-parameters-not-being-extracted-for-doors/76752/6 "2022-05-20T20:05:23Z")

</div>

Hi Draxl\_Andreas

I tried that already but the value comes back null.  
I have looked at lots of other examples of people having similar issues but height always seems to appear yet it does not seems to be working for me

Thanks

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

---

<div class="post-metadata">

**Author:** ![neil.mackennon](https://avatars.discourse-cdn.com/v4/letter/n/c37758/32.png) [@neil.mackennon](https://forum.dynamobim.com/u/neil.mackennon)\
**Post date:** [May 20, 2022, 8:06pm UTC](https://forum.dynamobim.com/t/height-width-parameters-not-being-extracted-for-doors/76752/7 "2022-05-20T20:06:45Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/9/99075058e16a880468abe8526ca23ca99582630f.png)

this is a test model i am using to try and get the script to work

---

<div class="post-metadata">

**Author:** ![neil.mackennon](https://avatars.discourse-cdn.com/v4/letter/n/c37758/32.png) [@neil.mackennon](https://forum.dynamobim.com/u/neil.mackennon)\
**Post date:** [May 20, 2022, 8:07pm UTC](https://forum.dynamobim.com/t/height-width-parameters-not-being-extracted-for-doors/76752/8 "2022-05-20T20:07:30Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/e/4ed6c1f48451d18d65fd6f51c3c4e6867213f3ba.png)

---

<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 20, 2022, 10:02pm UTC](https://forum.dynamobim.com/t/height-width-parameters-not-being-extracted-for-doors/76752/9 "2022-05-20T22:02:22Z")

</div>

@neil.mackennon , @Nick_Boyts

I slowly understand this lenguage that noone can speak 🙂

```auto
import clr
clr.AddReference('RevitServices')
from RevitServices.Persistence import DocumentManager

clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *

doc = DocumentManager.Instance.CurrentDBDocument

def familyInstance(x,list):
	if isinstance(x,list):
		return x
	else:
		return [x]

elements = UnwrapElement(IN[0])
vals = []

for i in familyInstance(elements,list):
    # Get ElementId of ElementType
    tipo_id = elements.GetTypeId()
    # Get actual Element from Document
    tipo = doc.GetElement(tipo_id)
    if tipo:
        i = tipo.LookupParameter(IN[1])
        if i:
            param = i.AsDouble()
            metricvals = UnitUtils.ConvertFromInternalUnits(param,UnitTypeId.Meters)
            vals.append(metricvals)
    else:
        vals.append()

OUT = vals

```

 ![2022-05-21_00h03_34](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/a/6aefca02cb56d6087976459afab3d50480037202.jpeg)

---

<div class="post-metadata">

**Author:** ![neil.mackennon](https://avatars.discourse-cdn.com/v4/letter/n/c37758/32.png) [@neil.mackennon](https://forum.dynamobim.com/u/neil.mackennon)\
**Post date:** [May 20, 2022, 10:32pm UTC](https://forum.dynamobim.com/t/height-width-parameters-not-being-extracted-for-doors/76752/10 "2022-05-20T22:32:47Z")

</div>

Thank you!

---

<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 21, 2022, 3:16am UTC](https://forum.dynamobim.com/t/height-width-parameters-not-being-extracted-for-doors/76752/11 "2022-05-21T03:16:31Z")

</div>

@neil.mackennon , if it works you can mark it as solution… … so noone will ask anymore about calling typeparameters 😉

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [May 21, 2022, 4:21am UTC](https://forum.dynamobim.com/t/height-width-parameters-not-being-extracted-for-doors/76752/12 "2022-05-21T04:21:22Z")

</div>

Hello…i would just do as \>Nick mention…with ootb

 ![Screenshot 2022-05-21 062006](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/b/ab98fe4282fd44065c3657835bd99558d756675f.jpeg)

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [May 21, 2022, 7:10am UTC](https://forum.dynamobim.com/t/height-width-parameters-not-being-extracted-for-doors/76752/13 "2022-05-21T07:10:21Z")

</div>

For the next week at least…

---

<div class="post-metadata">

**Author:** ![neil.mackennon](https://avatars.discourse-cdn.com/v4/letter/n/c37758/32.png) [@neil.mackennon](https://forum.dynamobim.com/u/neil.mackennon)\
**Post date:** [May 21, 2022, 8:04am UTC](https://forum.dynamobim.com/t/height-width-parameters-not-being-extracted-for-doors/76752/14 "2022-05-21T08:04:06Z")

</div>

Thanks everyone, and I’ve seen I have annoyed some people with my question sorry. I then had to try to make it work with linked files doors but with a couple of packages and your advice I got it working. so thank you!

---

<div class="post-metadata">

**Author:** ![neil.mackennon](https://avatars.discourse-cdn.com/v4/letter/n/c37758/32.png) [@neil.mackennon](https://forum.dynamobim.com/u/neil.mackennon)\
**Post date:** [May 21, 2022, 8:04am UTC](https://forum.dynamobim.com/t/height-width-parameters-not-being-extracted-for-doors/76752/15 "2022-05-21T08:04:35Z")

</div>

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