<?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: Store data entered in a form in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/store-data-entered-in-a-form/m-p/11630187#M10624</link>
    <description>&lt;P&gt;Hi everyone.&lt;BR /&gt;I'm still evaluating the best solution for my case and I would like to ask you some questions.&lt;BR /&gt;How should I go about:&lt;BR /&gt;1. Connect a new XRecord to layer 0?&lt;BR /&gt;2. See the list of XRecords connected to layer 0?&lt;BR /&gt;3. Read all the XRecords connected to layer 0 or one in particular?&lt;BR /&gt;Thanks and sorry for the questions (for you they will be trivial) but I still have to learn a lot.&lt;BR /&gt;Bye.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Dec 2022 18:01:55 GMT</pubDate>
    <dc:creator>mecoman6GF27</dc:creator>
    <dc:date>2022-12-19T18:01:55Z</dc:date>
    <item>
      <title>Store data entered in a form</title>
      <link>https://forums.autodesk.com/t5/net-forum/store-data-entered-in-a-form/m-p/11625286#M10619</link>
      <description>&lt;P&gt;Hi everyone.&lt;/P&gt;&lt;P&gt;Do you think it is possible to memorize the data inserted in a form without using NOD?&lt;/P&gt;&lt;P&gt;Thanks a lot, bye.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 15:48:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/store-data-entered-in-a-form/m-p/11625286#M10619</guid>
      <dc:creator>mecoman6GF27</dc:creator>
      <dc:date>2022-12-16T15:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Store data entered in a form</title>
      <link>https://forums.autodesk.com/t5/net-forum/store-data-entered-in-a-form/m-p/11625326#M10620</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;It depends on the kind of storing&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;In the current drawing only during the current session: you can store the data as instance members of a class or Document.UserData entries (see &lt;A href="https://through-the-interface.typepad.com/through_the_interface/2006/10/perdocument_dat_1.html" target="_blank" rel="noopener"&gt;this topic&lt;/A&gt;)&lt;/LI&gt;
&lt;LI&gt;Persistant in a drawing: typically xrecord or xdata, xrecords can be attached to a named dictionary (NOD) or an extension dictionary of some non purgeable object such as the layer "0", some symbol table, xdata should also be attached to some non purgeable object.&lt;/LI&gt;
&lt;LI&gt;Persistant and accessible from any drawing: entries of a Registry key or data stored in an external file (.txt, .csv, .ini, .xml, .json, ...)&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 16 Dec 2022 16:04:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/store-data-entered-in-a-form/m-p/11625326#M10620</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2022-12-16T16:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Store data entered in a form</title>
      <link>https://forums.autodesk.com/t5/net-forum/store-data-entered-in-a-form/m-p/11625464#M10621</link>
      <description>&lt;P&gt;I have used the "dwgprops" custom category to store form information in the past.&amp;nbsp; These properties are exposed to users. Link below&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/net/need-to-add-custom-metadata-in-the-autocad-files-dwg/m-p/9875502#M67426" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/net/need-to-add-custom-metadata-in-the-autocad-files-dwg/m-p/9875502#M67426&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 16:57:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/store-data-entered-in-a-form/m-p/11625464#M10621</guid>
      <dc:creator>fieldguy</dc:creator>
      <dc:date>2022-12-16T16:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Store data entered in a form</title>
      <link>https://forums.autodesk.com/t5/net-forum/store-data-entered-in-a-form/m-p/11626949#M10622</link>
      <description>&lt;P&gt;Hello and thanks for the replies.&lt;/P&gt;&lt;P&gt;I really think I'll have to use Xrecords connected to a NOD but I asked myself a question that I ask you too.&lt;/P&gt;&lt;P&gt;"Is it possible to create a NOD accessible only by my application and not by others? If yes, how?"&lt;/P&gt;&lt;P&gt;Thanks a lot, bye.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2022 15:42:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/store-data-entered-in-a-form/m-p/11626949#M10622</guid>
      <dc:creator>mecoman6GF27</dc:creator>
      <dc:date>2022-12-17T15:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Store data entered in a form</title>
      <link>https://forums.autodesk.com/t5/net-forum/store-data-entered-in-a-form/m-p/11628111#M10623</link>
      <description>&lt;P&gt;I don't think you can hide anything in a dwg file. Some user who digs around will find it and mess with it.&lt;/P&gt;&lt;P&gt;You could try "Properties.Settings"?&amp;nbsp; Something like&amp;nbsp;"MyAppnamespace.Properties.Settings.Default.somesetting".&lt;/P&gt;&lt;P&gt;That seems to work for text anyway (read / write).&lt;/P&gt;&lt;P&gt;Link:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/453161/how-can-i-save-application-settings-in-a-windows-forms-application" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/453161/how-can-i-save-application-settings-in-a-windows-forms-application&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2022 15:00:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/store-data-entered-in-a-form/m-p/11628111#M10623</guid>
      <dc:creator>fieldguy</dc:creator>
      <dc:date>2022-12-18T15:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Store data entered in a form</title>
      <link>https://forums.autodesk.com/t5/net-forum/store-data-entered-in-a-form/m-p/11630187#M10624</link>
      <description>&lt;P&gt;Hi everyone.&lt;BR /&gt;I'm still evaluating the best solution for my case and I would like to ask you some questions.&lt;BR /&gt;How should I go about:&lt;BR /&gt;1. Connect a new XRecord to layer 0?&lt;BR /&gt;2. See the list of XRecords connected to layer 0?&lt;BR /&gt;3. Read all the XRecords connected to layer 0 or one in particular?&lt;BR /&gt;Thanks and sorry for the questions (for you they will be trivial) but I still have to learn a lot.&lt;BR /&gt;Bye.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 18:01:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/store-data-entered-in-a-form/m-p/11630187#M10624</guid>
      <dc:creator>mecoman6GF27</dc:creator>
      <dc:date>2022-12-19T18:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Store data entered in a form</title>
      <link>https://forums.autodesk.com/t5/net-forum/store-data-entered-in-a-form/m-p/11630682#M10625</link>
      <description>&lt;P&gt;Xrecords belongs to DBDictionaries and are accessible by their "name" (key) which is unique within the owner dictionary.&lt;/P&gt;
&lt;P&gt;There's two kinds of dictionaries:&lt;/P&gt;
&lt;P&gt;- named dictionaries that belongs to a DBDictionary (typically the Named Objects Dictionary which is the root dictionary for named dictionaries). As Xrecords they are accessible by their name.&lt;/P&gt;
&lt;P&gt;- extension dictionaries that belongs to any DBObject.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, to store some xrecords, you could either use the extension dictionary of the layer 0 or simply create a new named dictionary in the NOD.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find in &lt;A href="https://forums.autodesk.com/t5/net/writing-and-reading-values-to-an-entity-s-extended-dictionary/m-p/8406151/highlight/true#M60778" target="_blank" rel="noopener"&gt;this reply&lt;/A&gt; some extension methods to read/write xrecord data. These extension methods are extracted from a largest library: &lt;A href="https://github.com/gileCAD/Gile.AutoCAD.Extension" target="_blank" rel="noopener"&gt;Gile.AutoCAD.Extension&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 07:31:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/store-data-entered-in-a-form/m-p/11630682#M10625</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2022-12-20T07:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Store data entered in a form</title>
      <link>https://forums.autodesk.com/t5/net-forum/store-data-entered-in-a-form/m-p/11633495#M10626</link>
      <description>&lt;P&gt;hello and thank you very much to all.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 08:32:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/store-data-entered-in-a-form/m-p/11633495#M10626</guid>
      <dc:creator>mecoman6GF27</dc:creator>
      <dc:date>2022-12-21T08:32:17Z</dc:date>
    </item>
  </channel>
</rss>

