# Toggle visibilty on/off

**URL:** https://forum.dynamobim.com/t/toggle-visibilty-on-off/43569
**Category:** Revit
**Tags:** revit, dynamo
**Created:** [November 25, 2019, 1:39pm UTC](https://forum.dynamobim.com/t/toggle-visibilty-on-off/43569 "2019-11-25T13:39:30Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Marcus\_Isacsson](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@Marcus\_Isacsson](https://forum.dynamobim.com/u/Marcus_Isacsson)
#### Post date: [November 25, 2019, 1:39pm UTC](https://forum.dynamobim.com/t/toggle-visibilty-on-off/43569/1 "2019-11-25T13:39:30Z")

</div>

Hi fellas!

How do I toggle visibility on/off for a Revit family parameter?  
True seems to toggle “on” but when I try “False” it doesn’t seem to work, what should be used to toggle a unticked visibility parameter?

---

<div class="post-metadata">

### Author: ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)
#### Post date: [November 25, 2019, 2:17pm UTC](https://forum.dynamobim.com/t/toggle-visibilty-on-off/43569/2 "2019-11-25T14:17:43Z")

</div>

Hi @Marcus_Isacsson

> [@Marcus\_Isacsson](#):
>
> but when I try “False” it doesn’t seem to work,

Could you please show us your graph?

---

<div class="post-metadata">

### Author: ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)
#### Post date: [November 27, 2019, 7:56am UTC](https://forum.dynamobim.com/t/toggle-visibilty-on-off/43569/3 "2019-11-27T07:56:40Z")

</div>

What do you mean with toggling a Revit Family Parameter from visible to invisible?  
If it corresponds to a Boolean Parameter in revit you should use a Boolean input as Parameter Value.

---

<div class="post-metadata">

### Author: ![Marcus\_Isacsson](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@Marcus\_Isacsson](https://forum.dynamobim.com/u/Marcus_Isacsson)
#### Post date: [November 27, 2019, 9:36am UTC](https://forum.dynamobim.com/t/toggle-visibilty-on-off/43569/4 "2019-11-27T09:36:52Z")

</div>

![Parameter block](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/1/41bee5492ecd20d07b9f2a7fd0b997f915d77b15.png)

Those kind of parameters. A boolean doesn’t seem to untick the parameter(?).

The script is attached.  
[MM - Batch-ifyllnad Title Blocks.dyn](https://forum.dynamobim.com/uploads/short-url/8Ne8nWI2OKrgIDycKEyJsb6NUi9.dyn) (38.1 KB)

---

<div class="post-metadata">

### Author: ![SeanP](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/seanp/32/42560_2.png) [@SeanP](https://forum.dynamobim.com/u/SeanP)
#### Post date: [November 27, 2019, 10:12am UTC](https://forum.dynamobim.com/t/toggle-visibilty-on-off/43569/5 "2019-11-27T10:12:01Z")

</div>

Try using an integer to set them. Use 1 for true and 0 for false. I’ve had good luck with that. Also, make sure you trying to change it on the TYPE element and not the instance since it’s a Type parameters.

---

<div class="post-metadata">

### Author: ![Marcus\_Isacsson](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@Marcus\_Isacsson](https://forum.dynamobim.com/u/Marcus_Isacsson)
#### Post date: [November 27, 2019, 12:31pm UTC](https://forum.dynamobim.com/t/toggle-visibilty-on-off/43569/6 "2019-11-27T12:31:23Z")

</div>

Awesome @SeanP, will try that.

---

<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: [November 27, 2019, 2:09pm UTC](https://forum.dynamobim.com/t/toggle-visibilty-on-off/43569/7 "2019-11-27T14:09:21Z")

</div>

Both `true`/`false` and `1`/`0` should work. As Kulkul said, we’ll need to see your graph to know what’s going on.
