<?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: Extensible storage + Undo in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/extensible-storage-undo/m-p/12232266#M9691</link>
    <description>&lt;P&gt;My first tests are working fine by just deleting the entities without calling&amp;nbsp;revitDocument.EraseSchemaAndAllEntities.&lt;/P&gt;&lt;P&gt;I am wondering if a &lt;STRONG&gt;revitDocument.EraseAllEntities(schema)&lt;/STRONG&gt; method in the API could be added to the wish list&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grimacing_face:"&gt;😬&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In any case, thank you very much for your help !!&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2023 15:01:20 GMT</pubDate>
    <dc:creator>jorge.bslu</dc:creator>
    <dc:date>2023-09-11T15:01:20Z</dc:date>
    <item>
      <title>Extensible storage + Undo</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/extensible-storage-undo/m-p/12231637#M9687</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For sure, I am probably doing something wrong, but I am facing the following issue with Revit 2023 &amp;amp; 2024:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Start Revit and create a new project&lt;/LI&gt;&lt;LI&gt;Start a transaction (actually a transaction group since I am exporting a physical+analytical model to Revit)&lt;/LI&gt;&lt;LI&gt;Create schema (mySchema)&lt;/LI&gt;&lt;LI&gt;Export a steel beam (1) and other analytical stuffs&lt;/LI&gt;&lt;LI&gt;Set entity to that family instance with that schema&lt;/LI&gt;&lt;LI&gt;End transaction&lt;/LI&gt;&lt;LI&gt;Everything looks fine&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Next:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Start transaction 2 in the same document&lt;/LI&gt;&lt;LI&gt;schema =&amp;nbsp;Schema.Lookup(sameIdThanBefore)&lt;/LI&gt;&lt;LI&gt;Call document.EraseSchemaAndAllEntities(schema)&lt;/LI&gt;&lt;LI&gt;Export another steel beam (2)&lt;/LI&gt;&lt;LI&gt;Set entity to it with "schema"&lt;/LI&gt;&lt;LI&gt;End transaction&lt;/LI&gt;&lt;LI&gt;I see that beam 2 has its entity but not beam 1 (as I'd expect)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Then, I click "undo" in Revit UI:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Steel beam 2 has disappeared (as expected) because all stuffs from transaction group 2 has gone&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Entity for beam 1 has disappeared&amp;nbsp;as well. I would expect to see the entity from the first transaction.&amp;nbsp;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;It looks like&amp;nbsp;document.EraseSchemaAndAllEntities is not undoable &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any clue on this issue. I have taken a look at the different posts and Jeremmy's blog but I did not find anything that could help me.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 10:37:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/extensible-storage-undo/m-p/12231637#M9687</guid>
      <dc:creator>jorge.bslu</dc:creator>
      <dc:date>2023-09-11T10:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Extensible storage + Undo</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/extensible-storage-undo/m-p/12231953#M9688</link>
      <description>&lt;P&gt;This sounds pretty suspect to me. Please consider an extensile storage schema something that you create once and for all for all eternity. You never modify it in any way whatsoever. You can delete it, but I would be careful with that as well. This has caused many complications and misunderstandings, so best to consider it undeletable as well. If you wish, go ahead and delete the data entities. Just leave the schema alone. Can you reformulate your question based on such considerations? Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 13:10:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/extensible-storage-undo/m-p/12231953#M9688</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2023-09-11T13:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Extensible storage + Undo</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/extensible-storage-undo/m-p/12232017#M9689</link>
      <description>&lt;P&gt;Hi&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;Thanks for taking your time to reply.&lt;/P&gt;&lt;P&gt;I get it. I don't want (nor need) to delete any schema since they are singleton objects in memory (nothing more sensitive than then), but what I want is "to wipe" entities from Revit elements before a new exportation to Revit is performed.&lt;/P&gt;&lt;P&gt;Maybe, I need to implement my own method (instead of calling doc.EraseSchemaAndAllEntities) to remove just the entities from elements. I hope that loop does not make negative impact on performance.&lt;/P&gt;&lt;P&gt;I will give it a try and hope that fixes my issue.&lt;/P&gt;&lt;P&gt;I'll keep you posted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 13:30:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/extensible-storage-undo/m-p/12232017#M9689</guid>
      <dc:creator>jorge.bslu</dc:creator>
      <dc:date>2023-09-11T13:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Extensible storage + Undo</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/extensible-storage-undo/m-p/12232101#M9690</link>
      <description>&lt;P&gt;My pleasure, thank you for your appreciation. Sounds like a good approach to me. Good luck and hope it works as expected then.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 14:02:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/extensible-storage-undo/m-p/12232101#M9690</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2023-09-11T14:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Extensible storage + Undo</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/extensible-storage-undo/m-p/12232266#M9691</link>
      <description>&lt;P&gt;My first tests are working fine by just deleting the entities without calling&amp;nbsp;revitDocument.EraseSchemaAndAllEntities.&lt;/P&gt;&lt;P&gt;I am wondering if a &lt;STRONG&gt;revitDocument.EraseAllEntities(schema)&lt;/STRONG&gt; method in the API could be added to the wish list&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grimacing_face:"&gt;😬&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In any case, thank you very much for your help !!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 15:01:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/extensible-storage-undo/m-p/12232266#M9691</guid>
      <dc:creator>jorge.bslu</dc:creator>
      <dc:date>2023-09-11T15:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Extensible storage + Undo</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/extensible-storage-undo/m-p/12232911#M9692</link>
      <description>&lt;P&gt;I'm very glad that it helped. Thank you for your appreciation. I see no great need for such a method, given that you can quickly filter for elements equipped with a certain extensible storage schema data entity using a&amp;nbsp;ExtensibleStorageFilter and then process those as needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 19:48:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/extensible-storage-undo/m-p/12232911#M9692</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2023-09-11T19:48:41Z</dc:date>
    </item>
  </channel>
</rss>

