# Element.SetParameterByName issue

**URL:** <https://forum.dynamobim.com/t/element-setparameterbyname-issue/29353>\
**Category:** Revit\
**Created:** [December 6, 2018, 12:52am UTC](https://forum.dynamobim.com/t/element-setparameterbyname-issue/29353 "2018-12-06T00:52:49Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Bill\_Mutert](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bill_mutert/32/192965_2.png) [@Bill\_Mutert](https://forum.dynamobim.com/u/Bill_Mutert)\
**Post date:** [July 11, 2019, 5:38pm UTC](https://forum.dynamobim.com/t/element-setparameterbyname-issue/29353/9 "2019-07-11T17:38:38Z")

</div>

Found another thread and fixed my own problem - [Controlling visibility parameters in titleblocks](https://forum.dynamobim.com/t/controlling-visibility-parameters-in-titleblocks/9781)

I was using “Sheets” instead of “Title Blocks” at the front and was not using binary control 0/1 in a code block for ON/OFF at the set Parameter node.

 ![Fixed](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/7/f7172f05ef780650d52e3c68ea5a63ce6ee41aad.png)

Works now

---

_[View the full topic](https://forum.dynamobim.com/t/element-setparameterbyname-issue/29353)._
