# Hide specific text family in all views

**URL:** <https://forum.dynamobim.com/t/hide-specific-text-family-in-all-views/13606>\
**Category:** Revit\
**Tags:** revit, clockwork, archi-lab\
**Created:** [August 1, 2017, 1:05am UTC](https://forum.dynamobim.com/t/hide-specific-text-family-in-all-views/13606 "2017-08-01T01:05:12Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![brianS](https://avatars.discourse-cdn.com/v4/letter/b/c6cbf5/32.png) [@brianS](https://forum.dynamobim.com/u/brianS)\
**Post date:** [August 1, 2017, 1:05am UTC](https://forum.dynamobim.com/t/hide-specific-text-family-in-all-views/13606/1 "2017-08-01T01:05:12Z")

</div>

Based upon information I read in “Hide/Unhide all lines by linestyle” and “Error: un-/hide CAD files with archi-lab node”, I have attempted to create a script which will hide or unhide a specific text family which I am using for redlining. I do not want this to print, therefore the exercise.

I have successfully had the script work in both directions a couple of times, but for some reason consistency is an issue. I am uncertain if it is my revit (2016), dynamo (1.2), or my code.

Take a look. Any insight is greatly appreciated.

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/e/0e5bed36e69e5f820982ad53e0c582f16866f061.png)

---

<div class="post-metadata">

**Author:** ![Ewan\_Opie](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ewan_opie/32/77070_2.png) [@Ewan\_Opie](https://forum.dynamobim.com/u/Ewan_Opie)\
**Post date:** [August 1, 2017, 10:25am UTC](https://forum.dynamobim.com/t/hide-specific-text-family-in-all-views/13606/2 "2017-08-01T10:25:50Z")

</div>

Hi. You could try using the Element.Ownerview node from clockwork to match the list of elements you feeding to the hide node. I have a similar script that recolors page clouding on sheets that have been changed but not issued since the last major issue, I’ll check that in the morning for any more tips.

---

<div class="post-metadata">

**Author:** ![brianS](https://avatars.discourse-cdn.com/v4/letter/b/c6cbf5/32.png) [@brianS](https://forum.dynamobim.com/u/brianS)\
**Post date:** [August 1, 2017, 1:37pm UTC](https://forum.dynamobim.com/t/hide-specific-text-family-in-all-views/13606/3 "2017-08-01T13:37:54Z")

</div>

Thanks for the tip.

I tried the Element.Ownerview but receive the error stating that the list to be hidden is empty. I do not receive the same error with the Document.Views node.

I have also received an error in my background which is attached as well.

 ![Ownerview](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/a/1ac294e40763a8f0f11a19b78206ab072a64b58f.JPG)

---

<div class="post-metadata">

**Author:** ![brianS](https://avatars.discourse-cdn.com/v4/letter/b/c6cbf5/32.png) [@brianS](https://forum.dynamobim.com/u/brianS)\
**Post date:** [August 1, 2017, 1:38pm UTC](https://forum.dynamobim.com/t/hide-specific-text-family-in-all-views/13606/4 "2017-08-01T13:38:33Z")

</div>

Here is the error in the background (new user so I can only upload 1 image per post).

![Error](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/3X/a/a/aabd15489aa64cba77c3e7b504102fa51856a7f4.JPG)

---

<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:** [August 1, 2017, 2:06pm UTC](https://forum.dynamobim.com/t/hide-specific-text-family-in-all-views/13606/5 "2017-08-01T14:06:42Z")

</div>

Maybe try moving them to a selection set with Dynamo, and hiding that selection set with a filter applied to all views on sheets?

---

<div class="post-metadata">

**Author:** ![brianS](https://avatars.discourse-cdn.com/v4/letter/b/c6cbf5/32.png) [@brianS](https://forum.dynamobim.com/u/brianS)\
**Post date:** [August 1, 2017, 3:19pm UTC](https://forum.dynamobim.com/t/hide-specific-text-family-in-all-views/13606/6 "2017-08-01T15:19:59Z")

</div>

I am able to get the list to save as a Selection Set, but I do not see away to create a Selection Set based filter, only a rule based filter (ParameterFilterElement.ByRules). Are you aware of a node that will allow the creation of a filter based upon a Selection Set?

Also, it appears even if this were to work, per Clockwork notes, if the Selection Set is already applied as a View Filter, it would need to be manually updated in Visibility and Graphics once the Selection Set is updated. (not an ideal)

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/3/83c719f4c1476da784772ffd35e6a518a882b685.JPG)

---

<div class="post-metadata">

**Author:** ![Ewan\_Opie](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ewan_opie/32/77070_2.png) [@Ewan\_Opie](https://forum.dynamobim.com/u/Ewan_Opie)\
**Post date:** [August 3, 2017, 9:41am UTC](https://forum.dynamobim.com/t/hide-specific-text-family-in-all-views/13606/7 "2017-08-03T09:41:33Z")

</div>

Hi, as a temporary work around I have used the override.colorinview node to set the color of some of our marking text types to rgb 254,254,254 ( so close to white that PDF printers didn’t see it) then cleared the override after the print. I had the same issue pop up when testing your node layout, I’ll have another look tmw.

---

<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:** [August 3, 2017, 3:51pm UTC](https://forum.dynamobim.com/t/hide-specific-text-family-in-all-views/13606/8 "2017-08-03T15:51:22Z")

</div>

Check and make sure it’s not still hiding your text notes. When I tried this I also got the error but it successfully hid my elements. I’m guessing it’s a lacing issue within the node that gives an error but continues anyway.

---

<div class="post-metadata">

**Author:** ![brianS](https://avatars.discourse-cdn.com/v4/letter/b/c6cbf5/32.png) [@brianS](https://forum.dynamobim.com/u/brianS)\
**Post date:** [August 3, 2017, 5:24pm UTC](https://forum.dynamobim.com/t/hide-specific-text-family-in-all-views/13606/9 "2017-08-03T17:24:05Z")

</div>

Unfortunately it will no longer hide mine. Our IT guy has noted that Dynamo can sometimes corrupt the Revit install, so I am now wondering if this is what happened, since I was able to get it to operate a couple times before it became inoperable. I have a project deadline now, and cannot try to have IT fix my Revit at the moment, and have installed the CADdaddy add-in which achieves nearly the same result (tested and working).

---

<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:** [August 3, 2017, 7:47pm UTC](https://forum.dynamobim.com/t/hide-specific-text-family-in-all-views/13606/10 "2017-08-03T19:47:27Z")

</div>

Can you upload your dyn file? I’ll take a look sometime this week or weekend.

> [@brianS](#):
>
> Our IT guy has noted that Dynamo can sometimes corrupt the Revit install,

🤔

Please have him start a thread about this, including notes on what the corruption he is seeing is. It’s more likely a Revit plugin which is clashing not Revit. Disabling the plugin may fix it. If it’s actually with Revit the community ought to know asap.
