<?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: how to catch autocad error message eFileSharingViolation by using C# in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-catch-autocad-error-message-efilesharingviolation-by/m-p/12038813#M8507</link>
    <description>Thank you very much for your reply.&lt;BR /&gt;When I read dwg file to copy block into current modelspace,&lt;BR /&gt;If I use FileOpenMode.OpenForReadAndAllShare, the error disappear.</description>
    <pubDate>Fri, 16 Jun 2023 12:11:52 GMT</pubDate>
    <dc:creator>jelly_oy</dc:creator>
    <dc:date>2023-06-16T12:11:52Z</dc:date>
    <item>
      <title>how to catch autocad error message eFileSharingViolation by using C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-catch-autocad-error-message-efilesharingviolation-by/m-p/12035037#M8505</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;I need to read a dwg template file to copy block into current drawing modelspace,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;when I pre open the template file and then start my current drawing, it reports error&lt;/FONT&gt; &lt;FONT size="4"&gt;message&lt;/FONT&gt;&amp;nbsp;&lt;FONT size="4"&gt;&lt;STRONG&gt;eFileSharingViolation.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;I want to catch this error, but I don't know how to do, Can somebody else give some suggestion？&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Thank you very much.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 02:08:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-catch-autocad-error-message-efilesharingviolation-by/m-p/12035037#M8505</guid>
      <dc:creator>jelly_oy</dc:creator>
      <dc:date>2023-06-15T02:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to catch autocad error message eFileSharingViolation by using C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-catch-autocad-error-message-efilesharingviolation-by/m-p/12038751#M8506</link>
      <description>&lt;P&gt;2 questions&lt;/P&gt;&lt;P&gt;why do you have the template open in the editor? the error msg is self-explanatory.&lt;/P&gt;&lt;P&gt;what do you hope to accomplish by "catching" the error?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 11:44:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-catch-autocad-error-message-efilesharingviolation-by/m-p/12038751#M8506</guid>
      <dc:creator>fieldguy</dc:creator>
      <dc:date>2023-06-16T11:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to catch autocad error message eFileSharingViolation by using C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-catch-autocad-error-message-efilesharingviolation-by/m-p/12038813#M8507</link>
      <description>Thank you very much for your reply.&lt;BR /&gt;When I read dwg file to copy block into current modelspace,&lt;BR /&gt;If I use FileOpenMode.OpenForReadAndAllShare, the error disappear.</description>
      <pubDate>Fri, 16 Jun 2023 12:11:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-catch-autocad-error-message-efilesharingviolation-by/m-p/12038813#M8507</guid>
      <dc:creator>jelly_oy</dc:creator>
      <dc:date>2023-06-16T12:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to catch autocad error message eFileSharingViolation by using C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-catch-autocad-error-message-efilesharingviolation-by/m-p/12038855#M8508</link>
      <description>&lt;P&gt;"&lt;SPAN&gt;I need to read a dwg template file to copy block into current drawing modelspace,"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;you do not need the template open in the editor - you can use a side database. there are several examples in this forum.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;older example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/net/import-blocks-programmatically-c/m-p/5766155#M45573" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/net/import-blocks-programmatically-c/m-p/5766155#M45573&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but, if your way works for you, good! IMO - it seems odd to me - the template should be a static document - only edited for administrative purposes (in other words, almost never "open").&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 12:29:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-catch-autocad-error-message-efilesharingviolation-by/m-p/12038855#M8508</guid>
      <dc:creator>fieldguy</dc:creator>
      <dc:date>2023-06-16T12:29:39Z</dc:date>
    </item>
  </channel>
</rss>

