<?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: API code to open a Group file as read only (bc someone else might have it op in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/api-code-to-open-a-group-file-as-read-only-bc-someone-else-might/m-p/7767819#M52574</link>
    <description>&lt;P&gt;Dear Stephen,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you checked what the Windows API says about the read-only, read-write etc. file access rights to the file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you can use that information to detect that Revit has the file open and has locked it down somehow, preventing further access from other parties.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&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;</description>
    <pubDate>Sat, 10 Feb 2018 12:15:35 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2018-02-10T12:15:35Z</dc:date>
    <item>
      <title>API code to open a Group file as read only (bc someone else might have it open)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/api-code-to-open-a-group-file-as-read-only-bc-someone-else-might/m-p/7765643#M52572</link>
      <description>&lt;P&gt;We have a custom addin to load in multiple Revit Group files into a project with a click of a button. However, if someone in the office has one of the Revit Groups open, we get an error and it doesn't execute. Is there any API code out there that enables us to select the Groups we want to load in and if the group is open somewhere else, it will open the groups as "read only" files instead of giving us an error because it's open?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 14:50:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/api-code-to-open-a-group-file-as-read-only-bc-someone-else-might/m-p/7765643#M52572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-09T14:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: API code to open a Group file as read only (bc someone else might have it op</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/api-code-to-open-a-group-file-as-read-only-bc-someone-else-might/m-p/7767067#M52573</link>
      <description>&lt;P&gt;Don't know what you mean by group file to be honest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could create a file open token in the same location as the group file i.e. you add handler for document opened and closed to create the token file, delete the token file respectively. Add handler&amp;nbsp;to handle family loading and if token file exists then cancel event.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However probably better and easier to correct the code that leaves an unhandled exception in the first place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 22:58:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/api-code-to-open-a-group-file-as-read-only-bc-someone-else-might/m-p/7767067#M52573</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2018-02-09T22:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: API code to open a Group file as read only (bc someone else might have it op</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/api-code-to-open-a-group-file-as-read-only-bc-someone-else-might/m-p/7767819#M52574</link>
      <description>&lt;P&gt;Dear Stephen,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you checked what the Windows API says about the read-only, read-write etc. file access rights to the file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you can use that information to detect that Revit has the file open and has locked it down somehow, preventing further access from other parties.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&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;</description>
      <pubDate>Sat, 10 Feb 2018 12:15:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/api-code-to-open-a-group-file-as-read-only-bc-someone-else-might/m-p/7767819#M52574</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-02-10T12:15:35Z</dc:date>
    </item>
  </channel>
</rss>

