<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I get and set the View Design Option Override? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/8228274#M78685</link>
    <description>&lt;P&gt;I am a little late to this one (lol).&amp;nbsp; Instead of using an Exterior Elevation, use a Section for Elevation and the parameter will be available&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Aug 2018 21:45:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-27T21:45:57Z</dc:date>
    <item>
      <title>How do I get and set the View Design Option Override?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/4449249#M78673</link>
      <description>&lt;P&gt;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 &amp;lt;View Name&amp;gt;, then activate the 'Design Options' tab where each Design Option Set is listed with its currently displayed Design Option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG border="0" src="https://forums.autodesk.com/t5/image/serverpage/image-id/62775i2D921677C4988B7D/image-size/original?v=mpbl-1&amp;amp;px=-1" align="center" title="ViewOptionSettings.png" alt="ViewOptionSettings.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2013 15:01:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/4449249#M78673</guid>
      <dc:creator>trevor.taylor</dc:creator>
      <dc:date>2013-09-23T15:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get and set the View Design Option Override?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/4460689#M78674</link>
      <description>&lt;P&gt;Have you looked into the DesignOptions property?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I made some testing and it's showing for elements, meaning in with DesignOption that specific element was created. But it seems that the View.DesignOption remains null regardless this changes...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So please give it a try, maybe your scenario is different.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;void Getinfo_DesignOption(Document document)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Get the selected Elements in the Active Document&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UIDocument uidoc = new UIDocument(document);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ElementSet selection = uidoc.Selection.Elements;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach (Autodesk.Revit.DB.Element element in selection)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Use the DesignOption property of Element&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (element.DesignOption != null)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TaskDialog.Show("Revit",element.DesignOption.Name.ToString());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2013 20:26:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/4460689#M78674</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2013-09-26T20:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get and set the View Design Option Override?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/4465799#M78675</link>
      <description>&lt;P&gt;I was able to get the option associate with a model element. Each element&amp;nbsp;belongs to one an only one option.&amp;nbsp;However, what I want is a diffent thing altogether.&amp;nbsp;With a view's overrides, the game is a little different: we need a collection of IDs. A View has an associated&amp;nbsp;Parameter called 'Visible in Option' whose built-in parameter def is named VIEWER_OPTION_VISIBILITY. That seems promising, but its value is always &amp;lt;null&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is also a parameter named 'Visibility/Graphics Overrides' whose built-in parameter def is named VIEW_VISIBLE_CATEGORIES.&amp;nbsp;This parameter seems promising,&amp;nbsp;and has a value, but I&amp;nbsp;don't know what to do with it.&amp;nbsp;I'll fiddle around a bit to see if in can extract some data.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2013 22:37:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/4465799#M78675</guid>
      <dc:creator>trevor.taylor</dc:creator>
      <dc:date>2013-09-27T22:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get and set the View Design Option Override?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/4465865#M78676</link>
      <description>&lt;P&gt;This seemed promising...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I create a view template and set the Design option overrides. When I inspect the parameters of the view template using Revit Lookup I see that there is one named "V/G Overrides Design Options" whose built-in parameter is named VIS_GRAPHICS_DESIGNOPTIONS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sweet!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But its value is always null.&amp;nbsp;Stinky.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are these Mystery Parameters?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG align="center" border="0" alt="VIS-DESIGN-OPTIONS.png" src="https://forums.autodesk.com/t5/image/serverpage/image-id/63503i8B9EB4897183675D/image-size/original?v=mpbl-1&amp;amp;px=-1" title="VIS-DESIGN-OPTIONS.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2013 23:38:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/4465865#M78676</guid>
      <dc:creator>trevor.taylor</dc:creator>
      <dc:date>2013-09-27T23:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get and set the View Design Option Override?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/4481263#M78677</link>
      <description>&lt;P&gt;I made some testing, and I might be wrong, but the views are not affected by the Design Option. Meaning the views are above it, and are applicable to all design options...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I missing anything here?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2013 19:40:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/4481263#M78677</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2013-10-02T19:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get and set the View Design Option Override?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/4481735#M78678</link>
      <description>&lt;P&gt;Let me recap my problem.&amp;nbsp;I want to progamatically do what in the UI is done by accessing Visibility Graphics Overrides for a view&amp;nbsp;and then the&amp;nbsp;Design Options tab to change the options visibility for a view.&amp;nbsp;This&amp;nbsp;tab is visible in a project file with at least one Option Set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use Revit Lookup -&amp;gt; Snoop DB to inspect the parameters of, say, a ViewPlan object, I don't see any properties or parameters that point to the Design Option V/G overrides. (A View has a 'Design Option' property, but this, I believe, is inherited from Element and is used to assign an element to the Main Model or a Design Option. If so, then it makes perfect sense that it would always have a value of &amp;lt;null&amp;gt; when applied to a view.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, a View whose 'IsTemplate' property = true has&amp;nbsp;parameters that begin with 'V/G Overrides..." and includes a parameter named &lt;STRONG&gt;'V/G Overrides Design Options'&lt;/STRONG&gt; which, I'm hoping contains the View's Design Option visibility settings. So then, I suppose I have two questions: 1) How to I make use of this parameter and 2) why does it show up only for a View Template and not a View?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason I want to do this it to write an addin command that duplicates specified views for each&amp;nbsp;design option in a design option set and then assigns&amp;nbsp;one of the options to each of the&amp;nbsp;views. This would be a big time-saver for presentations where I may have several options that I want to see using several views. For example, 3 options times 3 views for each option is 9 views i need to duplicate and the assign the appropriate option to. Boring. More fun to push a button than play see-saw with&amp;nbsp;the scroll bar in the Project Browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2013 23:24:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/4481735#M78678</guid>
      <dc:creator>trevor.taylor</dc:creator>
      <dc:date>2013-10-02T23:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get and set the View Design Option Override?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/4482391#M78680</link>
      <description>at first i thought VT cannot be changed and filed ADN support for my very 1st (?) dumb question, now it seems most if not all VG Overrides cannot be changed as mentioned by trevor?! still wait for their reply.</description>
      <pubDate>Thu, 03 Oct 2013 07:35:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/4482391#M78680</guid>
      <dc:creator>Ning_Zhou</dc:creator>
      <dc:date>2013-10-03T07:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get and set the View Design Option Override?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/4493085#M78681</link>
      <description>&lt;P&gt;Sometimes dumb questions attract smart answers. That's why I ask them. Often. And there are plenty of clever and persistent folks out there who are smarter than I am and&amp;nbsp;can often&amp;nbsp;come up a workaround to a seemingly impossible problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, in this case, What we want to do apparently&amp;nbsp;can't be done. The V/G Overrides Design Options&amp;nbsp;settings,&amp;nbsp;and&amp;nbsp;their cousins in the V/G overrides diialog, have to be explicitly exposed. It just so happens that Filters have been made available, but not the other settings. I found this post on Jeremy's blog that tells the (sad)&amp;nbsp;story: &lt;A target="_blank" href="http://thebuildingcoder.typepad.com/blog/2013/08/view-filter-api.html"&gt;http://thebuildingcoder.typepad.com/blog/2013/08/view-filter-api.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the relevant citation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"The SCHEDULE_FILTER_PARAM and VIS_GRAPHICS_FILTERS built-in parameters are possibly used to store these settings, but&lt;EM&gt; they cannot be read or modified through the API since they are used to store multiple values, and there is no API support for that kind of value type&lt;/EM&gt;."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wish Revit's approach to its API were like AutoCAD's in that the AutoCAD UI is completely separate from it's graphics and geometry engine. Therefore, &lt;U&gt;with ACAD, if it can be accomplished in the UI, then it can be accomplished in the API&lt;/U&gt;. It was nice, back in the old AutoCAD days, being drunk with all that power, but Revit has sobered me up!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Oct 2013 14:38:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/4493085#M78681</guid>
      <dc:creator>trevor.taylor</dc:creator>
      <dc:date>2013-10-06T14:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get and set the View Design Option Override?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/4759969#M78682</link>
      <description>&lt;P&gt;For those of your who may be following this post, I've found a suitable solution to my puzzle by using View parameter "Visible in Option".&amp;nbsp;The real purpose of this property is to limit the display of view tags, sections or elevations for example, to only views displaying the specified option. This property is useful if, say, you have&amp;nbsp;duplicated a section view several times to display several different options. By setting each duplicated section's Visible in Option property, you keep your floor plans neater by not having several section lines stacked&amp;nbsp;one atop the other.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I digress. By default this property is set to "All" options, or null. Setting it to a valid Design Option ID has the bonus&amp;nbsp;behavior of causing the View's Visibility Graphics&amp;nbsp;Design Option override setting to also be set to the selected option with the happy result that my addin now does exactly what I want. Hurray!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to get the ElementID of the Design&amp;nbsp;Option you want to assign. Then you need a reference to the View. Be aware that not all views have this property, so plan accordingly. Here's the relevant&amp;nbsp;example code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// Set the View's Visible in Option Property:&lt;BR /&gt;Parameter myParameter =&lt;/P&gt;&lt;P&gt;&amp;nbsp; myView.get_Parameter(BuiltInParameter.VIEWER_OPTION_VISIBILITY) as Parameter;&lt;BR /&gt;// Some views don't have "visible in option" property (e.g.: Schedule)&lt;BR /&gt;if (null != myParameter)&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myParameter.Set(opt.Id);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Use the following statement to set the View's Visible in Option property back to "All"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //myParameter.Set(new ElementId(BuiltInParameter.INVALID));&lt;/P&gt;&lt;P&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, for the segment where I offer credit where credit is due: I found the&amp;nbsp;&lt;A href="http://boostyourbim.wordpress.com/2013/12/03/au2013-wish-2-granted/" target="_blank"&gt;key to my puzzle&lt;/A&gt;&amp;nbsp;on Harry Mattison's &lt;A href="http://boostyourbim.wordpress.com/" target="_blank"&gt;Boost Your BIM&lt;/A&gt;&amp;nbsp;blog. Check it out. He has lots of good stuff. Thanks, Harry!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trevor Taylor&lt;/P&gt;&lt;P&gt;ZGF Architects&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2014 17:07:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/4759969#M78682</guid>
      <dc:creator>trevor.taylor</dc:creator>
      <dc:date>2014-01-18T17:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get and set the View Design Option Override?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/5209907#M78683</link>
      <description>&lt;P&gt;Looks like this anomly persists. It seems to be caused by "Crop Region Visibility"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I apply a "View Template" to a design option in a 3D View or Perspective, Design Options don't change.&lt;/P&gt;&lt;P&gt;But when I toggle the Crop Region, Design option takes effect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any fix yet for this out there?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2014 18:18:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/5209907#M78683</guid>
      <dc:creator>Sinha</dc:creator>
      <dc:date>2014-08-12T18:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get and set the View Design Option Override?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/7891239#M78684</link>
      <description>&lt;P&gt;VIEWER_OPTION_VISIBILITY works nicely in plan views, but not in elevation views. Does anyone have a suggestion for this?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 15:05:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/7891239#M78684</guid>
      <dc:creator>boostyourbim</dc:creator>
      <dc:date>2018-03-28T15:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get and set the View Design Option Override?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/8228274#M78685</link>
      <description>&lt;P&gt;I am a little late to this one (lol).&amp;nbsp; Instead of using an Exterior Elevation, use a Section for Elevation and the parameter will be available&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 21:45:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/8228274#M78685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-27T21:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get and set the View Design Option Override?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/9142054#M78686</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a simple solution for this question already?&lt;/P&gt;&lt;P&gt;I just need to now, if the&amp;nbsp;DesignOption is visible in the (3D) view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Little more info:&lt;/P&gt;&lt;P&gt;FillteredElementCollector doesn't return Rooms for 3D view, but I want to use the Design Option Settings for filtering my Rooms.&lt;/P&gt;&lt;P&gt;So I want to filter the Rooms by accessing the Design Option view setting of a 3D view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris Hanschen&lt;/P&gt;&lt;P&gt;The Netherlands&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 18:17:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-do-i-get-and-set-the-view-design-option-override/m-p/9142054#M78686</guid>
      <dc:creator>c_hanschen</dc:creator>
      <dc:date>2019-11-12T18:17:17Z</dc:date>
    </item>
  </channel>
</rss>

