# When I try to set the level for Duct fitting or pipe fitting using python, I'm getting a error saying the parameter is read only, can someone help me with this

**URL:** <https://forum.dynamobim.com/t/when-i-try-to-set-the-level-for-duct-fitting-or-pipe-fitting-using-python-im-getting-a-error-saying-the-parameter-is-read-only-can-someone-help-me-with-this/99651>\
**Category:** Developers\
**Tags:** python, dynamo\
**Created:** [April 2, 2024, 7:11pm UTC](https://forum.dynamobim.com/t/when-i-try-to-set-the-level-for-duct-fitting-or-pipe-fitting-using-python-im-getting-a-error-saying-the-parameter-is-read-only-can-someone-help-me-with-this/99651 "2024-04-02T19:11:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [April 2, 2024, 7:55pm UTC](https://forum.dynamobim.com/t/when-i-try-to-set-the-level-for-duct-fitting-or-pipe-fitting-using-python-im-getting-a-error-saying-the-parameter-is-read-only-can-someone-help-me-with-this/99651/2 "2024-04-02T19:55:56Z")

</div>

The `LookupParameter()` method returns the first match it finds. In this case, `DuctFitting` elements actually have two “Level” parameters. The first one is the schedule level, which is read-only, and the second is the associated level that you’re looking for.

To get the specific parameter that you’re after, you can use the `BuiltInParameter` method instead.  
`element.get_Parameter(BuiltInParameter.FAMILY_LEVEL_PARAM)`

If you use the standard Dynamo nodes this would get handled automatically.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/5/a5f072950ab59750aad62cce09f1b2c296681849.png)

---

_[View the full topic](https://forum.dynamobim.com/t/when-i-try-to-set-the-level-for-duct-fitting-or-pipe-fitting-using-python-im-getting-a-error-saying-the-parameter-is-read-only-can-someone-help-me-with-this/99651)._
