<?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: Save input data in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/save-input-data/m-p/9672401#M32815</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if by “this data” you mean the data you saved in element using Extensible storage, and assuming by saying “from .cs file” you mean in your code because the data stored using extensible storage is stored in revit element and not your .cs file. Now, in your code, You can get it by retrieving that element in which you stored the data and using get entity the data can be retrieved from that element.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;hope this helps!&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Vish K.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Aug 2020 15:42:50 GMT</pubDate>
    <dc:creator>vkelani</dc:creator>
    <dc:date>2020-08-04T15:42:50Z</dc:date>
    <item>
      <title>Save input data</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/save-input-data/m-p/9661867#M32809</link>
      <description>&lt;P&gt;Is it possible to save input data&amp;nbsp;(text, boolean, etc) that user entered using the plugin ? If yes, what would be the best file format to use, to keep this information? I would like users to be able to "load" this data later (for example, if they close the Revit Project and re-open it).&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Sincerely.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 12:18:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/save-input-data/m-p/9661867#M32809</guid>
      <dc:creator>RECArchi</dc:creator>
      <dc:date>2020-07-29T12:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Save input data</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/save-input-data/m-p/9662058#M32810</link>
      <description>&lt;P&gt;You can use &lt;A href="https://www.revitapidocs.com/2020/79486a74-376c-9555-c873-45d5a750f051.htm" target="_blank" rel="noopener"&gt;ExtensibleStorage&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 13:34:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/save-input-data/m-p/9662058#M32810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-29T13:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Save input data</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/save-input-data/m-p/9665307#M32811</link>
      <description>&lt;P&gt;You can use the application settings Default values, and update the default values every time user inputs the value and save it. This way, the texts, numbers etc are available the next time the project/program is opened. This is more efficient than using Extensible storage.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;Vish K.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 21:52:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/save-input-data/m-p/9665307#M32811</guid>
      <dc:creator>vkelani</dc:creator>
      <dc:date>2020-07-30T21:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Save input data</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/save-input-data/m-p/9669293#M32812</link>
      <description>&lt;P&gt;Are you refering to the 2nd option in this post ?&lt;/P&gt;&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2014/03/storing-revit-add-in-settings.html" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2014/03/storing-revit-add-in-settings.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to have different settings for different projects. Thus, I think I'm gonna use ExtensibleStorage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 08:27:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/save-input-data/m-p/9669293#M32812</guid>
      <dc:creator>RECArchi</dc:creator>
      <dc:date>2020-08-03T08:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Save input data</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/save-input-data/m-p/9669969#M32813</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4030922"&gt;@RECArchi&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, that’s accurate.&amp;nbsp;&lt;BR /&gt;I am sure you know why people prefer app settings over extensible storage but if your requirements needs to have extensible storage then go ahead.&amp;nbsp;&lt;BR /&gt;I recently did research to implement the same for myself, and I’d still go with app settings over extensible storage for the user preferences because of obvious reasons.&amp;nbsp;&lt;BR /&gt;let me know if you need any further help on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers!&lt;/P&gt;&lt;P&gt;Vish K.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 14:18:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/save-input-data/m-p/9669969#M32813</guid>
      <dc:creator>vkelani</dc:creator>
      <dc:date>2020-08-03T14:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Save input data</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/save-input-data/m-p/9672036#M32814</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indeed, I use ExtensibleStorage and it seems to work as I want&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other question : I want to be able to retrieve this data from my .cs file and reinject it to the default values that I use for fields (textboxes, comboboxes, etc.) of the WPF window. How can I do this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the moment, my .xaml.cs file only contains default values I put manually. Example :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;public static double HF = 6 ;&lt;BR /&gt;public static double HF_sel { get { return HF; } set { HF = value; } }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 13:24:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/save-input-data/m-p/9672036#M32814</guid>
      <dc:creator>RECArchi</dc:creator>
      <dc:date>2020-08-04T13:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Save input data</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/save-input-data/m-p/9672401#M32815</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if by “this data” you mean the data you saved in element using Extensible storage, and assuming by saying “from .cs file” you mean in your code because the data stored using extensible storage is stored in revit element and not your .cs file. Now, in your code, You can get it by retrieving that element in which you stored the data and using get entity the data can be retrieved from that element.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;hope this helps!&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Vish K.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 15:42:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/save-input-data/m-p/9672401#M32815</guid>
      <dc:creator>vkelani</dc:creator>
      <dc:date>2020-08-04T15:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Save input data</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/save-input-data/m-p/9675040#M32816</link>
      <description>&lt;P&gt;Yes, I manage easily&amp;nbsp;to retrieve this data stored in element using ExtensibleStorage in my code.&lt;/P&gt;&lt;P&gt;What I want to do is to retrieve this data in my&lt;U&gt; view model &lt;/U&gt;(the code that is used for my WPF window). I want to display this data in textblocs of my WPF window,&amp;nbsp;for instance.&lt;/P&gt;&lt;P&gt;I've read that Revit classes should not be used within the view model:&lt;/P&gt;&lt;P&gt;&lt;A href="https://mathcadbimthingy.wordpress.com/2017/01/25/view-viewmodel-ing-for-your-wpf-windows-revit-api-with-wpf-series-33/" target="_blank"&gt;https://mathcadbimthingy.wordpress.com/2017/01/25/view-viewmodel-ing-for-your-wpf-windows-revit-api-with-wpf-series-33/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is that right ? If yes, what should I do ?&lt;/P&gt;&lt;P&gt;(Sorry I'm not an IT, I have basics knowledge in programming…)&lt;/P&gt;&lt;P&gt;Sincerely.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 17:22:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/save-input-data/m-p/9675040#M32816</guid>
      <dc:creator>RECArchi</dc:creator>
      <dc:date>2020-08-05T17:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Save input data</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/save-input-data/m-p/9675117#M32817</link>
      <description>&lt;P&gt;Once you retrieved your data, you can store wpf textbox or any item value by first setting its modifier settings from private to public or whatever you want to so you can access that settings in your code to set the value.&lt;/P&gt;&lt;P&gt;set the values before form.showdialog and make sure to refresh the form.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;Vish. k.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 18:00:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/save-input-data/m-p/9675117#M32817</guid>
      <dc:creator>vkelani</dc:creator>
      <dc:date>2020-08-05T18:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Save input data</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/save-input-data/m-p/9676079#M32818</link>
      <description>&lt;P&gt;Okay ! Indeed, my mistake was to initialize values manually. I initialized textblocs values from my code, and now it works !&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;Sincerely.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 07:04:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/save-input-data/m-p/9676079#M32818</guid>
      <dc:creator>RECArchi</dc:creator>
      <dc:date>2020-08-06T07:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Save input data</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/save-input-data/m-p/10498881#M32819</link>
      <description>&lt;P&gt;From the new Revit 2021 API, I have deprecated data :&amp;nbsp;&lt;SPAN&gt;DisplayUnitType,&amp;nbsp;UnitSymbolType and&amp;nbsp;UnitType. I replaced them by&amp;nbsp;UnitTypeId,&amp;nbsp;SymbolTypeId and&amp;nbsp;SpecTypeId.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, I can't store data like checkboxes (booleans) or numbers from ratios (no units) because the old&amp;nbsp;DisplayUnitType "UT_Undefined" no longer exist in ForgeTypeId.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can I solve this problem ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sincerely.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 09:42:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/save-input-data/m-p/10498881#M32819</guid>
      <dc:creator>RECArchi</dc:creator>
      <dc:date>2021-07-27T09:42:00Z</dc:date>
    </item>
  </channel>
</rss>

