<?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 Modify View Template's V/G Overrides Model in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/modify-view-template-s-v-g-overrides-model/m-p/11010378#M20194</link>
    <description>&lt;P&gt;Can somebody point me in the right direction here... I would like to hide/show object types in the &lt;STRONG&gt;V/G Overrides Model&lt;/STRONG&gt; for a specific&amp;nbsp;&lt;STRONG&gt;View Template&lt;/STRONG&gt;, (for which I have the &lt;STRONG&gt;ViewTemplateID&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Mar 2022 03:14:17 GMT</pubDate>
    <dc:creator>EATREVITPOOPCAD</dc:creator>
    <dc:date>2022-03-17T03:14:17Z</dc:date>
    <item>
      <title>Modify View Template's V/G Overrides Model</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/modify-view-template-s-v-g-overrides-model/m-p/11010378#M20194</link>
      <description>&lt;P&gt;Can somebody point me in the right direction here... I would like to hide/show object types in the &lt;STRONG&gt;V/G Overrides Model&lt;/STRONG&gt; for a specific&amp;nbsp;&lt;STRONG&gt;View Template&lt;/STRONG&gt;, (for which I have the &lt;STRONG&gt;ViewTemplateID&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 03:14:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/modify-view-template-s-v-g-overrides-model/m-p/11010378#M20194</guid>
      <dc:creator>EATREVITPOOPCAD</dc:creator>
      <dc:date>2022-03-17T03:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Modify View Template's V/G Overrides Model</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/modify-view-template-s-v-g-overrides-model/m-p/11012980#M20195</link>
      <description>&lt;P&gt;So I was brain farting a bit while burning the midnight fuel and couldn't figure out that View Templates are the same class as Views...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;            UIApplication uiapp = commandData.Application;

            Document doc = uiapp.ActiveUIDocument.Document;
            Selection sel = uiapp.ActiveUIDocument.Selection;

            View cView = doc.ActiveView;
            View viewTemplate = doc.GetElement(cView.ViewTemplateId) as View;

            Reference sourceReference = sel.PickObject(ObjectType.Element, "Select object type");

            Element sourceElement = doc.GetElement(sourceReference.ElementId);

            using (Transaction t = new Transaction(uiapp.ActiveUIDocument.Document))
            {
                t.Start("It's about to hide!");

                viewTemplate.SetCategoryHidden(sourceElement.Category.Id, true);

                t.Commit();
            }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 02:00:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/modify-view-template-s-v-g-overrides-model/m-p/11012980#M20195</guid>
      <dc:creator>EATREVITPOOPCAD</dc:creator>
      <dc:date>2022-03-18T02:00:27Z</dc:date>
    </item>
  </channel>
</rss>

