<?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: Displaying Workset dialog on Open in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/displaying-workset-dialog-on-open/m-p/8494520#M45211</link>
    <description>&lt;P&gt;Thanks for Benoit's reply!&lt;/P&gt;
&lt;P&gt;Yes, Revit provides accordingly event API to trigger for document opened, e.g. DocumentOpened&lt;BR /&gt;Per my verify, Revit workset dialog can be&amp;nbsp;opened via postcommand below:&lt;/P&gt;
&lt;PRE&gt;			UIApplication uiApp = new UIApplication(this.Application);
			RevitCommandId cmdId = RevitCommandId.LookupPostableCommandId(PostableCommand.Worksets);
			if(uiApp.CanPostCommand(cmdId))
				uiApp.PostCommand(cmdId);&lt;/PRE&gt;</description>
    <pubDate>Tue, 01 Jan 2019 11:59:31 GMT</pubDate>
    <dc:creator>JimJia</dc:creator>
    <dc:date>2019-01-01T11:59:31Z</dc:date>
    <item>
      <title>Displaying Workset dialog on Open</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/displaying-workset-dialog-on-open/m-p/8491511#M45209</link>
      <description>&lt;P&gt;I've researched this but am unable to find a solution. My users often place objects on the wrong workset. I'd like to do one of two things when a user opens a file containing worksets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Either / Or:&lt;/P&gt;
&lt;P&gt;1. Display Revit's worksets dialog box.&lt;/P&gt;
&lt;P&gt;2. Create my own form that lists all worksets in the current document and allow them to set the current one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I go with option 2 how do I get my dialog box to load if a file is opened that&amp;nbsp;contains worksets? Option 1. would be preferred because I assume it requires less coding. Am I wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2018 22:46:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/displaying-workset-dialog-on-open/m-p/8491511#M45209</guid>
      <dc:creator>62BJW</dc:creator>
      <dc:date>2018-12-28T22:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Workset dialog on Open</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/displaying-workset-dialog-on-open/m-p/8492254#M45210</link>
      <description>&lt;P&gt;Hey Bernie,&lt;/P&gt;
&lt;P&gt;I don't know much about worksets but from what I understand of the solutions you are looking for:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- both solutions require to be triggered by the event : the UI loads a document.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- solution 1 requires you to find the command corresponding to your with (Revit's dialog box about Worksets, which I don't think can be accessed by the API but perhaps by a PostCommand)&lt;/P&gt;
&lt;P&gt;- solution 2 just requires to make a FilteredElementCollector on your document once opened and put the informations found in a form, which is what ? 2 hours work max.&lt;/P&gt;
&lt;P&gt;In the end the solution 2 seems far easier to me!!&lt;/P&gt;
&lt;P&gt;But both solutions require to master the events in Revit, which is not the easiest part...&lt;/P&gt;
&lt;P&gt;Have fun !&lt;/P&gt;
&lt;P&gt;Benoit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Dec 2018 16:40:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/displaying-workset-dialog-on-open/m-p/8492254#M45210</guid>
      <dc:creator>BenoitE&amp;A</dc:creator>
      <dc:date>2018-12-29T16:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Workset dialog on Open</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/displaying-workset-dialog-on-open/m-p/8494520#M45211</link>
      <description>&lt;P&gt;Thanks for Benoit's reply!&lt;/P&gt;
&lt;P&gt;Yes, Revit provides accordingly event API to trigger for document opened, e.g. DocumentOpened&lt;BR /&gt;Per my verify, Revit workset dialog can be&amp;nbsp;opened via postcommand below:&lt;/P&gt;
&lt;PRE&gt;			UIApplication uiApp = new UIApplication(this.Application);
			RevitCommandId cmdId = RevitCommandId.LookupPostableCommandId(PostableCommand.Worksets);
			if(uiApp.CanPostCommand(cmdId))
				uiApp.PostCommand(cmdId);&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Jan 2019 11:59:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/displaying-workset-dialog-on-open/m-p/8494520#M45211</guid>
      <dc:creator>JimJia</dc:creator>
      <dc:date>2019-01-01T11:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Workset dialog on Open</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/displaying-workset-dialog-on-open/m-p/9542104#M45212</link>
      <description>&lt;P&gt;Dear Bernie,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The automatically generated DAS ticket #14926114 [Displaying Workset dialog on Open] has been reopened, saying,&amp;nbsp;&lt;EM&gt;Customer never received any workable solution... Will assign to queue&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you still in need of help in this issue? If so, then please say so and let us continue discussing it here in the public thread.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 05:20:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/displaying-workset-dialog-on-open/m-p/9542104#M45212</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-05-27T05:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Workset dialog on Open</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/displaying-workset-dialog-on-open/m-p/10083462#M45213</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1149164"&gt;@JimJia&lt;/a&gt;&amp;nbsp;it looks very simple!&lt;/P&gt;&lt;P&gt;is it external command? external app?&lt;/P&gt;&lt;P&gt;could you please share with us the "vsproject" file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have exactly the same issue as&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3685249"&gt;@62BJW&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 06:07:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/displaying-workset-dialog-on-open/m-p/10083462#M45213</guid>
      <dc:creator>amir.aroesti</dc:creator>
      <dc:date>2021-02-15T06:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Workset dialog on Open</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/displaying-workset-dialog-on-open/m-p/10083758#M45214</link>
      <description>&lt;P&gt;PostCommand is a Revit API call that you can execute within an external command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some examples:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.3" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.3&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 09:00:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/displaying-workset-dialog-on-open/m-p/10083758#M45214</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-02-15T09:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Workset dialog on Open</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/displaying-workset-dialog-on-open/m-p/10084662#M45215</link>
      <description>&lt;P&gt;thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I overview your appendix.&amp;nbsp;&lt;/P&gt;&lt;P&gt;it a little bit complicated for me and I try to find a simple source of implementing&amp;nbsp;postcommand inside code.&lt;/P&gt;&lt;P&gt;I have a record of a few exteranrcommand apps I created and do now the statute of postcommand application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope I clear. sorry about being junior &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Amir&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 16:13:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/displaying-workset-dialog-on-open/m-p/10084662#M45215</guid>
      <dc:creator>amir.aroesti</dc:creator>
      <dc:date>2021-02-15T16:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Workset dialog on Open</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/displaying-workset-dialog-on-open/m-p/10084817#M45216</link>
      <description>&lt;P&gt;You can simply take any external command that you already have working, copy it and replace the contents of the Execute method with Jim Jia's code snippet above.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 17:11:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/displaying-workset-dialog-on-open/m-p/10084817#M45216</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-02-15T17:11:03Z</dc:date>
    </item>
  </channel>
</rss>

