<?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: printing set in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5854738#M70100</link>
    <description>&lt;P&gt;Hi Mohamed,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please take a look at the 2 following posts in our Autodesk Revit API blogs, a quick simple google search found them for me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/aec/2015/04/set-views-to-print-with-revitapi.html" target="_blank"&gt;http://adndevblog.typepad.com/aec/2015/04/set-views-to-print-with-revitapi.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2015/06/revit-2016-sp1-and-sheets-missing-from-print-dialogue.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2015/06/revit-2016-sp1-and-sheets-missing-from-print-dialogue.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They might give you an idea to what you are tying to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
    <pubDate>Fri, 09 Oct 2015 16:31:29 GMT</pubDate>
    <dc:creator>rosalesduquej</dc:creator>
    <dc:date>2015-10-09T16:31:29Z</dc:date>
    <item>
      <title>printing set</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5849047#M70090</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to add user selected sheet to printing set in revit api.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mohamed Shafeer Ahamed&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 12:37:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5849047#M70090</guid>
      <dc:creator>Mohamed.ShafeerAhamed</dc:creator>
      <dc:date>2015-10-07T12:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: printing set</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5849105#M70091</link>
      <description>I hope this helps&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.revitzone.com/revit-fundamentals/179-sheet-sets" target="_blank"&gt;http://www.revitzone.com/revit-fundamentals/179-sheet-sets&lt;/A&gt;</description>
      <pubDate>Wed, 07 Oct 2015 13:00:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5849105#M70091</guid>
      <dc:creator>wispoxy</dc:creator>
      <dc:date>2015-10-07T13:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: printing set</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5849480#M70092</link>
      <description>&lt;P&gt;Dear wisp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want add view/sheet set from revit api.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;mohamed shafeer ahamed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 14:22:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5849480#M70092</guid>
      <dc:creator>Mohamed.ShafeerAhamed</dc:creator>
      <dc:date>2015-10-07T14:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: printing set</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5850563#M70093</link>
      <description>I apologize for the confusion. I'll try to find the appropriate answer.</description>
      <pubDate>Wed, 07 Oct 2015 19:04:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5850563#M70093</guid>
      <dc:creator>wispoxy</dc:creator>
      <dc:date>2015-10-07T19:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: printing set</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5851569#M70094</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;UIApplication uiapp = commandData.Application;
            UIDocument uidoc = uiapp.ActiveUIDocument;
            Document doc = uidoc.Document;
            Autodesk.Revit.UI.Selection.SelElementSet collection = uidoc.Selection.Elements;
            TaskDialog.Show("revit", "Number of selected elements: " + collection.Size.ToString());
            SelElementSet newSelectedElementSet = SelElementSet.Create();
            ViewSet bimutils = new ViewSet();
            foreach (Element e in collection)
            {
                if (e is ViewSheet)
                {
                    newSelectedElementSet.Add(e);
                }
            }
            if (0 != newSelectedElementSet.Size)
            {
                TaskDialog.Show("revit", uidoc.Selection.Elements.Size.ToString() +
                        " sheets are selected!");
            }
            else
            {
                TaskDialog.Show("revit", "No sheets have been selected!");
            }

            foreach (ViewSheet m in new FilteredElementCollector(doc).OfClass(typeof(ViewSheet)).Cast&amp;lt;ViewSheet&amp;gt;())&lt;/PRE&gt;&lt;P&gt;below code is for user selected element set,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;Autodesk.Revit.UI.Selection.&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;SelElementSet&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; collection = uidoc.Selection.Elements;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;SelElementSet&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; newSelectedElementSet = &lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;SelElementSet&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.Create();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want add&amp;nbsp; above element set to below code for avoid&amp;nbsp; adding all the sheet to printing set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;foreach&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; (&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;ViewSheet&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; m &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;in&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Consolas" size="2"&gt;new&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;FilteredElementCollector&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;(doc).OfClass(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;typeof&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;ViewSheet&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;)).Cast&amp;lt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;ViewSheet&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&amp;gt;())&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;Expecting ans from api experts.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;Regards&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;Mohammed shafeer ahamed&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 06:46:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5851569#M70094</guid>
      <dc:creator>Mohamed.ShafeerAhamed</dc:creator>
      <dc:date>2015-10-08T06:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: printing set</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5852040#M70095</link>
      <description>This link sure looks interesting &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://boostyourbim.wordpress.com/2013/08/01/create-a-viewsheet-set/" target="_blank"&gt;https://boostyourbim.wordpress.com/2013/08/01/create-a-viewsheet-set/&lt;/A&gt;</description>
      <pubDate>Thu, 08 Oct 2015 12:18:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5852040#M70095</guid>
      <dc:creator>wispoxy</dc:creator>
      <dc:date>2015-10-08T12:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: printing set</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5853707#M70096</link>
      <description>&lt;P&gt;Dear Wisp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is usefull but that macro will add all the sheets to set.i want to add user selected sheet to set .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shafeer&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 04:21:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5853707#M70096</guid>
      <dc:creator>Mohamed.ShafeerAhamed</dc:creator>
      <dc:date>2015-10-09T04:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: printing set</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5854095#M70097</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ViewSet vwSet = new ViewSet(); &lt;BR /&gt;                vwSet.insert(****** &lt;STRONG&gt;View/viewsheet of our choice&lt;/STRONG&gt; *****)&lt;BR /&gt;&lt;BR /&gt;                #region oldviewsheetsetting                
                ViewSheetSetting newviewSheetSetting = printManager2.ViewSheetSetting;
                IViewSheetSet vsheetset = newviewSheetSetting.CurrentViewSheetSet;
                
                bool needToCreateNewSet = true;
                FilteredElementCollector filteredElementCollectorSets = new FilteredElementCollector(doc);
                filteredElementCollectorSets.OfClass(typeof(ViewSheetSet));
                foreach (Element e in filteredElementCollectorSets)
                {
                    if (e is ViewSheetSet)
                    {
                        ViewSheetSet vSet = (ViewSheetSet)e;
                        if (vSet.Name == "&lt;STRONG&gt;CUSTOM VIEWSET&lt;/STRONG&gt;")
                        {
                            vSet.Views = vwSet;
                            newviewSheetSetting.CurrentViewSheetSet = vSet;
                         
                            vsheetset.Views = vSet.Views;
                            
                            try
                            {
                                newviewSheetSetting.Save();
                            }
                            catch { }
                            printManager2.Apply();
                            needToCreateNewSet = false;
                        }
                    }
                }
                if (needToCreateNewSet == true)
                {
                    newviewSheetSetting.CurrentViewSheetSet.Views = vwSet;
                    
                    vsheetset.Views = vwSet;
                    try
                    {
                        newviewSheetSetting.SaveAs("&lt;STRONG&gt;CUSTOM VIEWSET&lt;/STRONG&gt;");
                    }
                    catch { }
                    printManager2.Apply();
                    needToCreateNewSet = false;
                } 
                #endregion &lt;/PRE&gt;&lt;P&gt;This has always worked for me. just make sure you delete the viewsheetsetting before the end of the program. You will have to prompt the user to select a sheet somehow. have you tried creating a windows form with the sheet names? and then matching the name selected with the sheets in the doc should work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 11:04:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5854095#M70097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-09T11:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: printing set</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5854171#M70098</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that's the point:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"have you tried creating a windows form with the sheet names?"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In his code, he seems to mix both SelectionSet and FilteredElementCollector, manual and procedural selection.&lt;/P&gt;&lt;P&gt;The point is that if one wants to select &lt;EM&gt;abtract&lt;/EM&gt; Elements, he needs to make them selectable &lt;EM&gt;otherwise&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 12:11:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5854171#M70098</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2015-10-09T12:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: printing set</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5854576#M70099</link>
      <description>&lt;P&gt;&lt;STRONG&gt;document = ThisComponent&amp;nbsp; &lt;/STRONG&gt;'assigns the current document to the variable document&lt;BR /&gt;Sheets = document.Sheets&amp;nbsp; 'get the container of all Sheets&lt;BR /&gt;Sheet = Sheets.getByName("Sheet2")&amp;nbsp; &amp;nbsp;'get the sheet named Sheet2&lt;BR /&gt;Controller = document.getcurrentController&lt;BR /&gt;Controller.setActiveSheet(Sheet)&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 15:12:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5854576#M70099</guid>
      <dc:creator>wispoxy</dc:creator>
      <dc:date>2015-10-09T15:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: printing set</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5854738#M70100</link>
      <description>&lt;P&gt;Hi Mohamed,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please take a look at the 2 following posts in our Autodesk Revit API blogs, a quick simple google search found them for me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/aec/2015/04/set-views-to-print-with-revitapi.html" target="_blank"&gt;http://adndevblog.typepad.com/aec/2015/04/set-views-to-print-with-revitapi.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2015/06/revit-2016-sp1-and-sheets-missing-from-print-dialogue.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2015/06/revit-2016-sp1-and-sheets-missing-from-print-dialogue.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They might give you an idea to what you are tying to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 16:31:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5854738#M70100</guid>
      <dc:creator>rosalesduquej</dc:creator>
      <dc:date>2015-10-09T16:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: printing set</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5856328#M70101</link>
      <description>&lt;P&gt;Dear Jaime,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;may be your not getting my point , please kindly go through the attached&amp;nbsp;images for your clarity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shafeer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Oct 2015 09:20:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5856328#M70101</guid>
      <dc:creator>Mohamed.ShafeerAhamed</dc:creator>
      <dc:date>2015-10-11T09:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: printing set</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5875862#M70102</link>
      <description>&lt;P&gt;Dear Mohamed,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I replied to your colleague Vinay, but for others I'm posting a possible&amp;nbsp;Solution here. You guys can be the judge of that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if this does not give you Joy, I don't know what it will :). Here I'm providing you a function that creates your own custom ViewSet to be ready to Print, which will include the Sheets you select from your Sheets tree in the Project Browser.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;How to use it:&lt;/STRONG&gt; Select 1 or more Sheets using CTRL key to add more and then run your plugin. After the ViewSet gets created you can open the Print Dialog in order to check that what you selected has been included in the View/Sheet Set.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will suggest to add some tweaks to the code in order to make it more personalized for your use. But for right now. I hope you are happy with what I'm providing you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; public void SelectedSheetsToPrint
            (UIDocument uidoc, Document doc)
        {
            // Let's get the Sheets you Selected
            Selection sel = uidoc.Selection;
            ICollection&amp;lt;ElementId&amp;gt; ids = sel.GetElementIds();
            FilteredElementCollector SSTP = 
                new FilteredElementCollector(doc, ids);
            ElementClassFilter WantedElements = 
                new ElementClassFilter(typeof(ViewSheet));
            SSTP.WherePasses(WantedElements);
            List&amp;lt;Element&amp;gt; PrintElem = 
                SSTP.ToElements() as List&amp;lt;Element&amp;gt;;
            ViewSet myViewSet = new ViewSet();

            foreach (Element elements in PrintElem)
             {
                 ViewSheet viewSheet = elements as ViewSheet;
                 myViewSet.Insert(viewSheet);
             }
             // get the PrintManger from the current document
             PrintManager printManager = doc.PrintManager;

             // set this PrintManager to use the 
             // "Selected Views/Sheets" option
             printManager.PrintRange = PrintRange.Select;

             // get the ViewSheetSetting which manages the 
             // view/sheet set information of current document
             ViewSheetSetting viewSheetSetting = 
                 printManager.ViewSheetSetting;

             // set the views in this ViewSheetSetting 
             // to the newly created ViewSet
             viewSheetSetting.CurrentViewSheetSet.Views = 
                 myViewSet;

             if (myViewSet.Size == 0)
             {
                 TaskDialog.Show("Error", "No sheets selected");
                 return;
             }

             using (Transaction trans = 
                 new Transaction(doc, "Create ViewSet"))
             {
                 trans.Start();
                 // You can prompt the user to set their ViewSet name
                 string setName = "Jaime Test";
                 try
                 {
                     // Save the current view sheet 
                     // set to another view/sheet 
                     // set with the specified name.
                     viewSheetSetting.SaveAs(setName);
                 }
                 // handle the exception that will 
                 // occur if there is already a 
                 // view/sheet set with this name
                 catch (Autodesk.Revit.Exceptions.
                            InvalidOperationException)
                 {
                     TaskDialog.Show("Error", 
                         setName + " is already in use");
                     trans.RollBack();
                     return;
                 }
                 trans.Commit();
             }
             TaskDialog.Show("View Set", myViewSet.Size + 
                 " sheets added to the Set and are ready to Print");
        }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please let me know how it goes, and once again thank you for your patience and collaboration. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;By the way, the code could have been created by you, I used some of the suggestions our forum contributors gave you and also checking RevitLookup tool gave me the idea on how to put it together.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2015 18:47:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5875862#M70102</guid>
      <dc:creator>rosalesduquej</dc:creator>
      <dc:date>2015-10-23T18:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: printing set</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5877107#M70103</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;SPAN&gt;Jaime Rosales,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your suport, i have done with your previous post its working perfectly with me but is there any posibilities to remove existing setname before is its save same name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mohamed Shafeer&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Oct 2015 13:10:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5877107#M70103</guid>
      <dc:creator>Mohamed.ShafeerAhamed</dc:creator>
      <dc:date>2015-10-25T13:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: printing set</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5878913#M70104</link>
      <description>&lt;P&gt;Glad to hear that it worked as you were expecting. For your other question I can suggest to take a look at the &lt;STRONG&gt;ViewSheetSet&lt;/STRONG&gt; Class. There is a method DeleteEntity there that might help you with what you are looking for.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This class is a sub-class of Element, so you can get the elementId of the ViewSheetSet that you wish to delete and then call the Document.Delete Method (ElementId) to get rid of it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 21:04:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/printing-set/m-p/5878913#M70104</guid>
      <dc:creator>rosalesduquej</dc:creator>
      <dc:date>2015-10-26T21:04:39Z</dc:date>
    </item>
  </channel>
</rss>

