# Change design options with slider

**URL:** <https://forum.dynamobim.com/t/change-design-options-with-slider/40019>\
**Category:** Packages\
**Tags:** archi-lab\
**Created:** [August 28, 2019, 1:30pm UTC](https://forum.dynamobim.com/t/change-design-options-with-slider/40019 "2019-08-28T13:30:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![eng.jonathan](https://avatars.discourse-cdn.com/v4/letter/e/9fc29f/32.png) [@eng.jonathan](https://forum.dynamobim.com/u/eng.jonathan)\
**Post date:** [August 28, 2019, 1:30pm UTC](https://forum.dynamobim.com/t/change-design-options-with-slider/40019/1 "2019-08-28T13:30:04Z")

</div>

Hello everyone

I want simply to have a slider that can change the design options - I’m using archi-lab’s “Get Design Options”. That feels like super basic and there have been several posts on that, but I couldn’t find anything related to this simple task. Hope you can help me out:

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/b/1bfa1bda4b6d382b03813a36a8f8b9535f1b9112.png)

---

<div class="post-metadata">

**Author:** ![Thomas\_Corrie](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_corrie/32/63060_2.png) [@Thomas\_Corrie](https://forum.dynamobim.com/u/Thomas_Corrie)\
**Post date:** [August 28, 2019, 1:37pm UTC](https://forum.dynamobim.com/t/change-design-options-with-slider/40019/2 "2019-08-28T13:37:25Z")

</div>

The Revit API doesn’t allow you to set the design option for an element programmatically. There are some workarounds suggested in this thread:

> [@How to set Element's Design Option?](https://forum.dynamobim.com/t/how-to-set-elements-design-option/12851):
>
> Is it possible to set an element’s Design Option? I’ve got a graph that creates 3D Masses from Rooms, but now we’ve got a project with some of the Rooms in Design Options, so I need to set my Masses to match. I tried the Element.GetParameterValueByName on the Rooms and then Element.SetParameterByName on the Mass, but I get a “The parameter is read-only” error on the Set.

---

<div class="post-metadata">

**Author:** ![eng.jonathan](https://avatars.discourse-cdn.com/v4/letter/e/9fc29f/32.png) [@eng.jonathan](https://forum.dynamobim.com/u/eng.jonathan)\
**Post date:** [August 28, 2019, 5:15pm UTC](https://forum.dynamobim.com/t/change-design-options-with-slider/40019/3 "2019-08-28T17:15:18Z")

</div>

Actually I would like to change the design option view for the entire project, not a specific element. So a different group of families (furniture) would change for each value of the slider. The design option parameter value would be manually pre established for each family on the project so I was thinking on some way of simply filtering the families on the entire project view according to the design option value.

---

<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 28, 2019, 5:47pm UTC](https://forum.dynamobim.com/t/change-design-options-with-slider/40019/4 "2019-08-28T17:47:36Z")

</div>

Families and Family Types themselves don’t have a design option parameter. Family Instances do, but as noted above you can’t set those using this method.

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [August 28, 2019, 8:43pm UTC](https://forum.dynamobim.com/t/change-design-options-with-slider/40019/5 "2019-08-28T20:43:07Z")

</div>

Hey, sorry if I’m being dumb…

> Actually I would like to change the design option view for the entire project,

I would describe that as Setting The Primary Option?

> The design option parameter value would be manually pre established for each family on the project so I was thinking on some way of simply filtering the families on the entire project view according to the design option value.

I would describe that as setting the Design Option visibility in the view?

It’s unlikely that either of those can be set through the API but let me know if I’m on the wrong track 🙂

Mark

Jeremy is a god… [https://thebuildingcoder.typepad.com/blog/2015/03/list-and-switch-design-options-using-ui-automation.html](https://thebuildingcoder.typepad.com/blog/2015/03/list-and-switch-design-options-using-ui-automation.html)

Something else…

> **[How do I get and set the View Design Option Override?](https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/5209907/highlight/false#M6995)**
>
> I would like to programatically acces the current design option property of a view. For example, In the UI I would go to Visibility / Graphic Overrides for , then activate the 'Design Options' tab where each Design Option Set is listed with its...

---

<div class="post-metadata">

**Author:** ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)\
**Post date:** [September 28, 2019, 11:27pm UTC](https://forum.dynamobim.com/t/change-design-options-with-slider/40019/6 "2019-09-28T23:27:10Z")

</div>

@Mark.Ackerley was on the right track here. The answer was indeed in this post: [https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/5209907/highlight/false#M6995](https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/5209907/highlight/false#M6995)

So what Trevor noticed there is that a View has this parameter called “VIEWER\_OPTION\_VISIBILITY” and by default it looks like this parameter only controls what Tags to show/hide based on specified value, but it also has this hidden functionality where it actually toggles this setting:

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

This is perfect for us, since that will change the design option for the view. Here’s a little script on how to do that:

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/b/ebdef3f257fcd2e22a010ca9eb849cca68e0eae3.png)

Also a short video of it in action:

> **[Sep 28, 2019 7:23 PM.webm (video)](https://drive.google.com/file/d/1fS7Brm8RCTYxf_hxbfan3XyGMRX3HhFW/view)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [March 10, 2022, 11:19am UTC](https://forum.dynamobim.com/t/change-design-options-with-slider/40019/7 "2022-03-10T11:19:07Z")

</div>

I just tried this today and it didn’t work, for no obvious reason, so I did it this way… Pretty much the same…

 ![OBE_Set_View_Design_Option_2022-03-10_11-17-15](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/5/f5635ad06902ed138af658eb84411fde8634c64a.png)
