<?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: Recreate object from json in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/recreate-object-from-json/m-p/11552039#M15618</link>
    <description>&lt;P&gt;haha true. I follow KISS as much as I can. Hope it works out and this would solve the issue of not being able to transfer 2D details backwards in revit versions!&lt;/P&gt;</description>
    <pubDate>Mon, 14 Nov 2022 21:26:08 GMT</pubDate>
    <dc:creator>Moustafa_el-sawy</dc:creator>
    <dc:date>2022-11-14T21:26:08Z</dc:date>
    <item>
      <title>Recreate object from json</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/recreate-object-from-json/m-p/11551333#M15614</link>
      <description>&lt;P&gt;Hi, Im to Revit API but I have been searching regarding this for a while. Is there any functionality in the API to recreate a certain object if you have a json of this object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;BR /&gt;Using the Revit API I can get a selected TextNote as an object. If I serialize this into a Json, am I able to recreate this using the Revit API without hardcoding the api call to recreate this TextNote?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Grasshopper has this functionality where you can recreate objects from a json (&lt;A href="https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Runtime_CommonObject_FromJSON_1.htm" target="_blank"&gt;https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Runtime_CommonObject_FromJSON_1.htm&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything similar in Revit API?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 16:30:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/recreate-object-from-json/m-p/11551333#M15614</guid>
      <dc:creator>Moustafa_el-sawy</dc:creator>
      <dc:date>2022-11-14T16:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate object from json</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/recreate-object-from-json/m-p/11551608#M15615</link>
      <description>&lt;P&gt;Welcome to the Revit API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, sure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are talking about serialisation, or, more generally storage in an external (file) format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;joke&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please be aware that the BIM is a pretty complex construct full of mutual dependencies. Therefore, it is hardly feasible to store the entire BIM in JSON. For that reason, instead of JSON, Revit uses the file RVT format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;/joke&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A simple object such as a TextNote with relatively few constraints and relationships to other objects can easily be serialised to JSON and recreated via the API from that data. Due to the complexity of the BIM in general, though, the Revit API does not provide a built-in method to serialise objects to JSON or any other text based format. You can create you own, if you like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 18:06:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/recreate-object-from-json/m-p/11551608#M15615</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2022-11-14T18:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate object from json</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/recreate-object-from-json/m-p/11551659#M15616</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;Thanks for your quick response. Yes I am aware of the complexity of BIM objects :).&lt;/P&gt;&lt;P&gt;I was planning on limiting the json to object to just 2D elements (in a drafting view) such as AnnotionSymbol, DetailLines, Dimensions,Sketch,TextNotes etc (this what I have so far roughly from exploring the views using Revit Lookup). This means in theory I am able to parse a 2d view, convert all my objects to json and then re-import this json into any revit version/model and re-create this view. Theoretically this is possible right (assuming API calls didnt change much between the versions). I am simplifying it and I am sure will face issues but in terms of API capabilities, this should be doable right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 18:28:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/recreate-object-from-json/m-p/11551659#M15616</guid>
      <dc:creator>Moustafa_el-sawy</dc:creator>
      <dc:date>2022-11-14T18:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate object from json</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/recreate-object-from-json/m-p/11552036#M15617</link>
      <description>&lt;P&gt;Yes, absolutely doable. Sounds like a great project and absolutely viable. You might run into difficulties, just as you say. Try not to invest effort in fixing them, just try to work around or avoid them. Follow these:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://en.wikipedia.org/wiki/Pareto_principle" target="_blank"&gt;https://en.wikipedia.org/wiki/Pareto_principle&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://en.wikipedia.org/wiki/KISS_principle" target="_blank"&gt;https://en.wikipedia.org/wiki/KISS_principle&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, all will be well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 21:24:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/recreate-object-from-json/m-p/11552036#M15617</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2022-11-14T21:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate object from json</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/recreate-object-from-json/m-p/11552039#M15618</link>
      <description>&lt;P&gt;haha true. I follow KISS as much as I can. Hope it works out and this would solve the issue of not being able to transfer 2D details backwards in revit versions!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 21:26:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/recreate-object-from-json/m-p/11552039#M15618</guid>
      <dc:creator>Moustafa_el-sawy</dc:creator>
      <dc:date>2022-11-14T21:26:08Z</dc:date>
    </item>
  </channel>
</rss>

