# Set a Key Schedule Parameter back to (none)

**URL:** <https://forum.dynamobim.com/t/set-a-key-schedule-parameter-back-to-none/68826>\
**Category:** Revit\
**Tags:** revit, schedule, dynamo\
**Created:** [October 3, 2021, 9:38pm UTC](https://forum.dynamobim.com/t/set-a-key-schedule-parameter-back-to-none/68826 "2021-10-03T21:38:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julie\_Kidder](https://avatars.discourse-cdn.com/v4/letter/j/f17d59/32.png) [@Julie\_Kidder](https://forum.dynamobim.com/u/Julie_Kidder)\
**Post date:** [October 3, 2021, 9:38pm UTC](https://forum.dynamobim.com/t/set-a-key-schedule-parameter-back-to-none/68826/1 "2021-10-03T21:38:15Z")

</div>

Is there a way to set a key schedule parameter back to (none)? I have a script where I can easily set a key parameter to the element of a valid key, but I can’t figure out how to unset the parameter, which I need to do if certain conditions aren’t met. I can’t set the parameter with the string “(none)” even though that is what is output when an unset parameter is queried. I also can’t set the parameter to a null value, which also throws an error.

 ![Key parameter value](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/8/f8d6ec4c3e3ba3a38e1b2552ee948d0842e91094.png)  
 ![Key parameter goal](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/d/fda4f79ef9bd16318b7e7944ac8ce4a07a29814e.png)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 3, 2021, 9:40pm UTC](https://forum.dynamobim.com/t/set-a-key-schedule-parameter-back-to-none/68826/2 "2021-10-03T21:40:14Z")

</div>

Try feeding a ‘null’ for the key in question.

---

<div class="post-metadata">

**Author:** ![Julie\_Kidder](https://avatars.discourse-cdn.com/v4/letter/j/f17d59/32.png) [@Julie\_Kidder](https://forum.dynamobim.com/u/Julie_Kidder)\
**Post date:** [October 3, 2021, 9:45pm UTC](https://forum.dynamobim.com/t/set-a-key-schedule-parameter-back-to-none/68826/3 "2021-10-03T21:45:40Z")

</div>

I did, but get an error on the set parameter by name node

Warning: Element.SetParameterByName operation failed.  
The call is ambiguous between the following methods or properties: ‘Revit.Elements.InternalUtilities.ElementUtils.SetParameterValue(Autodesk.Revit.DB.Parameter, Revit.Elements.Element)’ and ‘Revit.Elements.InternalUtilities.ElementUtils.SetParameterValue(Autodesk.Revit.DB.Parameter, string)’

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 3, 2021, 10:06pm UTC](https://forum.dynamobim.com/t/set-a-key-schedule-parameter-back-to-none/68826/4 "2021-10-03T22:06:28Z")

</div>

Hmmmm… try using an invalid element? (Select by ID, -1 as the ID, feed that). Might not work though. This may require a more direct Revit API interaction (IE: Python, or a custom zero touch node) to ensure the right override.

---

<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:** [October 3, 2021, 10:10pm UTC](https://forum.dynamobim.com/t/set-a-key-schedule-parameter-back-to-none/68826/5 "2021-10-03T22:10:37Z")

</div>

Hello…have you tried this one,it could probably help…

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/0/00a7686b3a40aff539084325b15868fb811fb0fe.png)

---

<div class="post-metadata">

**Author:** ![Julie\_Kidder](https://avatars.discourse-cdn.com/v4/letter/j/f17d59/32.png) [@Julie\_Kidder](https://forum.dynamobim.com/u/Julie_Kidder)\
**Post date:** [October 3, 2021, 10:28pm UTC](https://forum.dynamobim.com/t/set-a-key-schedule-parameter-back-to-none/68826/6 "2021-10-03T22:28:24Z")

</div>

Setting it to an invalid element (which resulted in null) didn’t work, but the springs node did.

Thank you!
