<?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 How to acces all view sheet sets in document in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-acces-all-view-sheet-sets-in-document/m-p/6342521#M65439</link>
    <description>I'm able to make New sheet set of access the active sheet set, but how can i access all view sheet sets in the active document?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Chris Hanschen&lt;BR /&gt;The Netherlands</description>
    <pubDate>Sun, 22 May 2016 14:17:03 GMT</pubDate>
    <dc:creator>c_hanschen</dc:creator>
    <dc:date>2016-05-22T14:17:03Z</dc:date>
    <item>
      <title>How to acces all view sheet sets in document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-acces-all-view-sheet-sets-in-document/m-p/6342521#M65439</link>
      <description>I'm able to make New sheet set of access the active sheet set, but how can i access all view sheet sets in the active document?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Chris Hanschen&lt;BR /&gt;The Netherlands</description>
      <pubDate>Sun, 22 May 2016 14:17:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-acces-all-view-sheet-sets-in-document/m-p/6342521#M65439</guid>
      <dc:creator>c_hanschen</dc:creator>
      <dc:date>2016-05-22T14:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to acces all view sheet sets in document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-acces-all-view-sheet-sets-in-document/m-p/6342740#M65440</link>
      <description>&lt;P&gt;My post was a little bit to short! sorry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It says the topic has been ascalated, why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;more details:&lt;/P&gt;&lt;P&gt;I'm able to access the&amp;nbsp;PrintManager.ViewSheetSetting.CurrentViewSheetSet to get al list of al views and/or&amp;nbsp;sheets to print.&lt;/P&gt;&lt;P&gt;I can also make my own list and save it, no problem there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But how can i acces the other ViewSheetLists that are saved in the document?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have tried:&amp;nbsp;(vb.net)&lt;/P&gt;&lt;P&gt;Dim MyElementCollectorSheetsSets As FilteredElementCollector = New FilteredElementCollector(MyDoc)&lt;BR /&gt;MyElementCollectorSheetsSets.OfClass(GetType(IViewSheetSet))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;message:&lt;/P&gt;&lt;P&gt;Autodesk.Revit.Exceptions.ArgumentException: Input type(Autodesk.Revit.DB.IViewSheetSet) is not a recognized Revit API type&lt;BR /&gt;Parameter name: type&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;any help will be appreciated!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;The Netherlands&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 18:49:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-acces-all-view-sheet-sets-in-document/m-p/6342740#M65440</guid>
      <dc:creator>c_hanschen</dc:creator>
      <dc:date>2016-05-22T18:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to acces all view sheet sets in document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-acces-all-view-sheet-sets-in-document/m-p/6349654#M65441</link>
      <description>Dear Chris Hanschen,&lt;BR /&gt;&lt;BR /&gt;Please try code below, hope it's helpful:&lt;BR /&gt;&lt;BR /&gt;public Result Execute(ExternalCommandData commandData, ref string message, Autodesk.Revit.DB.ElementSet elements)&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;// find all viewsheet set within document&lt;BR /&gt;&lt;BR /&gt;Document doc = commandData.Application.ActiveUIDocument.Document;&lt;BR /&gt;&lt;BR /&gt;FilteredElementCollector coll = new FilteredElementCollector(doc);&lt;BR /&gt;&lt;BR /&gt;var all = coll.OfClass(typeof(ViewSheetSet)).ToElements();&lt;BR /&gt;&lt;BR /&gt;Console.WriteLine("Viewsheet set count: " + all.Count);&lt;BR /&gt;&lt;BR /&gt;foreach (ViewSheetSet vss in all)&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;Console.WriteLine("Name: " + vss.Name);&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;return Result.Succeeded;&lt;BR /&gt;&lt;BR /&gt;}</description>
      <pubDate>Thu, 26 May 2016 01:23:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-acces-all-view-sheet-sets-in-document/m-p/6349654#M65441</guid>
      <dc:creator>JimJia</dc:creator>
      <dc:date>2016-05-26T01:23:38Z</dc:date>
    </item>
  </channel>
</rss>

