<?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 tell if an ObjectID has already been Opened in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-tell-if-an-objectid-has-already-been-opened/m-p/2879324#M62331</link>
    <description>&lt;P&gt;Database.ObjectErased provides the DBObject itself as an argument; you don't need to open it from an ObjectId.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-drg&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jan 2011 03:50:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-01-13T03:50:30Z</dc:date>
    <item>
      <title>How to tell if an ObjectID has already been Opened</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-tell-if-an-objectid-has-already-been-opened/m-p/2878668#M62330</link>
      <description>&lt;P&gt;I have an event handler setup for DB.ObjectErased event. In certain situations I need to check the object. However, I can run into an issue where the erase was triggered from another one of my functions, so I error out when I try to access the object with an eWasOpenForWrite.&amp;nbsp; The details are not very relevent here, and my question is: is there a way to check the object ID to see if it was already&amp;nbsp;opened before I try to open it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to check, rather than put it in a Try...Catch, if only because when I debug, i leave visual studio set to break on exceptions and it can make debugging difficult when the code keeps stopping.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2011 18:24:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-tell-if-an-objectid-has-already-been-opened/m-p/2878668#M62330</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-12T18:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to tell if an ObjectID has already been Opened</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-tell-if-an-objectid-has-already-been-opened/m-p/2879324#M62331</link>
      <description>&lt;P&gt;Database.ObjectErased provides the DBObject itself as an argument; you don't need to open it from an ObjectId.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-drg&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2011 03:50:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-tell-if-an-objectid-has-already-been-opened/m-p/2879324#M62331</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-13T03:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to tell if an ObjectID has already been Opened</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-tell-if-an-objectid-has-already-been-opened/m-p/2879332#M62332</link>
      <description>&lt;P&gt;Check the property&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #2b91af;"&gt;DBObject&lt;/SPAN&gt;.IsWriteEnabled&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Jan 2011 04:05:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-tell-if-an-objectid-has-already-been-opened/m-p/2879332#M62332</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-13T04:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to tell if an ObjectID has already been Opened</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-tell-if-an-objectid-has-already-been-opened/m-p/2879354#M62333</link>
      <description>&lt;P&gt;Don't check DBObject.IsWriteEnabled in Database.ObjectErased. &amp;nbsp;Instead, check your assumptions about what triggers Database.ObjectErased and your assumption about what you can safely accomplish in Database.ObjectErased.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-drg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2011 05:02:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-tell-if-an-objectid-has-already-been-opened/m-p/2879354#M62333</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-13T05:02:19Z</dc:date>
    </item>
  </channel>
</rss>

