<?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 Moribund Elements in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/moribund-elements/m-p/5562808#M73175</link>
    <description>&lt;P&gt;We recently had a case with a corrupt element that could not be purged or deleted within Revit. This is the entry in the journal:&amp;nbsp;"The following untracked moribund element(s) have been discovered in the newly opened document:". So far it appears that I was able to delete the element via the api. My question is: Can "moribund" (near-death) elements be found in the database rather than via the journal? Even if they are rare, I would much rather a QA check to preempt&amp;nbsp;problems. Thanks again, Dale&lt;/P&gt;</description>
    <pubDate>Mon, 30 Mar 2015 05:43:20 GMT</pubDate>
    <dc:creator>Dale.Bartlett</dc:creator>
    <dc:date>2015-03-30T05:43:20Z</dc:date>
    <item>
      <title>Moribund Elements</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/moribund-elements/m-p/5562808#M73175</link>
      <description>&lt;P&gt;We recently had a case with a corrupt element that could not be purged or deleted within Revit. This is the entry in the journal:&amp;nbsp;"The following untracked moribund element(s) have been discovered in the newly opened document:". So far it appears that I was able to delete the element via the api. My question is: Can "moribund" (near-death) elements be found in the database rather than via the journal? Even if they are rare, I would much rather a QA check to preempt&amp;nbsp;problems. Thanks again, Dale&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2015 05:43:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/moribund-elements/m-p/5562808#M73175</guid>
      <dc:creator>Dale.Bartlett</dc:creator>
      <dc:date>2015-03-30T05:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Moribund Elements</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/moribund-elements/m-p/5565861#M73176</link>
      <description>&lt;P&gt;Hello Dale!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is very unlikely that we will come up with an API to access moribund elements. In fact, we would like our users from both the UI and API camps to know nothing about them at all. And, ideally, it would be so if there were no bugs in Revit. Unfortunately, as it happens there are a few bugs remaining in Revit (a joke ;-), thus it is apparently possible, now and then, for users to encounter these moribunds that escaped their destiny of certain death at the end of a transaction. For deletion is the only future those elements should face. Once marked a moribund, an element is presumed dead and awaiting its actual termination. The fact that is not actually deleted yet allows us to examine it if some other (related) elements feel compelled to do so (within the same transaction), but no changes to moribunds should be done any more. For all practical operations, a moribund is as good as dead. Technically, if a moribund evades its deletion, it should be considered a corruption of the containing document. I would expect it to be a minor corruption in most cases; something the user can happily live without likely not worrying and experiencing problems. That, naturally, depends on the nature of the element, however.&lt;/P&gt;
&lt;P&gt;The main point I am trying to convey here is that moribund elements are meant to be used and accessed only by us, Revit internal developers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2015 20:45:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/moribund-elements/m-p/5565861#M73176</guid>
      <dc:creator>arnostlobel</dc:creator>
      <dc:date>2015-03-31T20:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Moribund Elements</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/moribund-elements/m-p/5566287#M73177</link>
      <description>&lt;P&gt;Thanks Arnošt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your information was very helpful. In our case it was a serious problem: &lt;EM&gt;"&lt;STRONG&gt;The BIG problem&lt;/STRONG&gt; with this is that we cannot use Clarity with these files that have the corrupt elements, as the permissions cannot be set for the corrupt elements".&lt;/EM&gt; It also resulted in Revit crashes. Our deletion via the API has resolved the problem. Regards, Dale&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2015 06:03:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/moribund-elements/m-p/5566287#M73177</guid>
      <dc:creator>Dale.Bartlett</dc:creator>
      <dc:date>2015-04-01T06:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Moribund Elements</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/moribund-elements/m-p/5568711#M73178</link>
      <description>Hello Dale,&lt;BR /&gt;&lt;BR /&gt;I am sorry for your trouble. Like I said, there are bugs, and sometime it happens that moribund elements survive a transaction. If it gives you repeatedly trouble, I can only suggests contacting our customer support or and ADN representative, for we would need to have the file or at least the journal, ideally both. These bugs are of such nature that we cannot figure what exactly went wrong unless we know at least the name of the class of the element that got moribund and survived. If we can replay the journal when it actually happen, meaning we be able to stop at the transaction when the moribund element (or elements) weren't deleted (it would give us a warning if we play it in our in-house environment), the bug would be as good as fixed. However, even knowing the name of the element class would be of a great value.&lt;BR /&gt;&lt;BR /&gt;Thank you</description>
      <pubDate>Thu, 02 Apr 2015 14:45:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/moribund-elements/m-p/5568711#M73178</guid>
      <dc:creator>arnostlobel</dc:creator>
      <dc:date>2015-04-02T14:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Moribund Elements</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/moribund-elements/m-p/5646422#M73179</link>
      <description>&lt;P&gt;This is all working well and has resolved our problem. As the function allows a user to type any number for an Element ID, it has been interesting that ElementId 0 = New Construction Phase,&amp;nbsp;ElementId 1 = Project Phase Information, ElementId 2 = Lineweights, etc. Entering these numbers and proceeding obviously&amp;nbsp;brings on a few tears. My question is: are the fixed, internal, application-centric ElementIds listed somewhere? Is it possible to check for system ElementIds against user-created ElementIds? Thanks again, Dale&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2015 13:45:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/moribund-elements/m-p/5646422#M73179</guid>
      <dc:creator>Dale.Bartlett</dc:creator>
      <dc:date>2015-05-21T13:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Moribund Elements</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/moribund-elements/m-p/5647014#M73180</link>
      <description>&lt;P&gt;Hello Dave!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;I do not advise you&amp;nbsp;to depend on seemingly&amp;nbsp;fixed&amp;nbsp;element Ids in your applications. They may appear constant, but they really aren't. Revit assigns&amp;nbsp;consecutive integers to elements as they get created. The numbers may&amp;nbsp;look like constants even between Revit sessions, but any change to our code may shuffle the order in which elements get created (and that&amp;nbsp;is virtually certain&amp;nbsp;to happen between even minor version updates.)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2015 15:44:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/moribund-elements/m-p/5647014#M73180</guid>
      <dc:creator>arnostlobel</dc:creator>
      <dc:date>2015-05-21T15:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Moribund Elements</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/moribund-elements/m-p/5658636#M73181</link>
      <description>&lt;P&gt;Thanks Arnost,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I understand the principle of not relying on the Element ID to be fixed. Saying that, it looked like ElementId 0 = New Construction Phase,&amp;nbsp;ElementId 1 = Project Phase Information, ElementId 2 = Lineweights, etc. were&amp;nbsp;definitely Revit internal IDs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More specifically,&amp;nbsp;is it possible to check for &lt;U&gt;system&lt;/U&gt; ElementIds against &lt;U&gt;user-created&lt;/U&gt; ElementIds?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Dale&lt;/P&gt;</description>
      <pubDate>Sun, 31 May 2015 09:51:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/moribund-elements/m-p/5658636#M73181</guid>
      <dc:creator>Dale.Bartlett</dc:creator>
      <dc:date>2015-05-31T09:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Moribund Elements</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/moribund-elements/m-p/5658661#M73182</link>
      <description>&lt;P&gt;Dale,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the element Ids you referred&amp;nbsp;to aren't&amp;nbsp;of any&amp;nbsp;internal elements. The fact they have the values&amp;nbsp;as they do is just a pure coincidence. And like I said, they may&amp;nbsp;be completely reordered&amp;nbsp;in next release, even in a minor, incremental one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There indeed are some internal elements in Revit, but their values are out of the standard range regular elements can ever get. You cannot get those elements via the API, and even if you somehow guess their Ids Revit will return NULL when you ask&amp;nbsp;for the actual element. Naturally, we have very good reasons for this protection. Internal elements are not observable&amp;nbsp;and must be handled in very specific ways. There are essential to Revit functioning properly (in each document). Also, all of&amp;nbsp;those internal elements do not have&amp;nbsp;corresponding, public API element classes, thus an API developer cannot do anything with them anyway (besides possibly deleting them and/or copying them, which is not allowed anyway.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 31 May 2015 12:49:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/moribund-elements/m-p/5658661#M73182</guid>
      <dc:creator>arnostlobel</dc:creator>
      <dc:date>2015-05-31T12:49:21Z</dc:date>
    </item>
  </channel>
</rss>

