<?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: Scientific notation in entity handles in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scientific-notation-in-entity-handles/m-p/10584005#M56344</link>
    <description>&lt;P&gt;(handent handle)&lt;/P&gt;</description>
    <pubDate>Mon, 30 Aug 2021 08:33:14 GMT</pubDate>
    <dc:creator>Sea-Haven</dc:creator>
    <dc:date>2021-08-30T08:33:14Z</dc:date>
    <item>
      <title>Scientific notation in entity handles</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scientific-notation-in-entity-handles/m-p/10582731#M56341</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This question exists on the forums&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/vba/handles-getting-modified-when-put-in-excel/m-p/1865322#M79968" target="_blank"&gt;https://forums.autodesk.com/t5/vba/handles-getting-modified-when-put-in-excel/m-p/1865322#M79968&lt;/A&gt;&lt;BR /&gt;which details the problem with hex handles being exported and converted to scientific notation.&lt;/P&gt;&lt;P&gt;My problem is not exporting to excel, but directly in autocad.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(vl-prin1-to-string 124E4)
(vl-princ-to-string 124E4)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I store a structure on a DXF record in an xdictionary on an entity.&lt;BR /&gt;These structures have an entity handle reference.&lt;/P&gt;&lt;P&gt;The structure is a list, or list of lists that are stored as a string in the record, and (read) back into the lisp runtime to be manipulated and then stored back as a string.&lt;/P&gt;&lt;P&gt;I have to do a (vl-prin*) to put the structure into a string and be able to read it back.&lt;/P&gt;&lt;P&gt;My question is: can I set the lisp reader to ignore that conversion for the function in question?&lt;/P&gt;&lt;P&gt;Do I even have access to the lisp reader in autolisp?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thnaks&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 15:45:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scientific-notation-in-entity-handles/m-p/10582731#M56341</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-29T15:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific notation in entity handles</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scientific-notation-in-entity-handles/m-p/10583261#M56342</link>
      <description>&lt;P&gt;1st hex is 2 characters 124E4 is only 5 not 6 ? If you export as "ABAEE4" in csv file will work you need to make the string a double "\"ABAEE4\"" so it appears as a string.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 23:46:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scientific-notation-in-entity-handles/m-p/10583261#M56342</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2021-08-29T23:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific notation in entity handles</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scientific-notation-in-entity-handles/m-p/10583909#M56343</link>
      <description>&lt;P&gt;Thanks for the reply; but the problem is a little more fundamental than that.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(setq A '(1 "just" "a" "list" "124E4") ;; even "12E44" and so forth
      A1 (cons 1 (vl-princ-to-string A))
      A2 (read (cdr A1)))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;A2 now holds a converted SN symbol.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I was to build the stringify and read functions using (vl-prin1-to-string), the read back structure breaks in interesting ways since the prin1 function is compatible with (load) function, and not (read) function.&lt;BR /&gt;I have discovered why prin1 is not useful, but call me stumped if I could find the reason in the reams of code I have. It just breaks something even more important.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My last resort is handling entity handles differently, as you suggest, breaking the notational representation by maybe replacing 'E' with '-' in those string handles passing through the structure handler functions.&lt;/P&gt;&lt;P&gt;But come on, do I not have access to the reader?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 07:43:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scientific-notation-in-entity-handles/m-p/10583909#M56343</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-30T07:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific notation in entity handles</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scientific-notation-in-entity-handles/m-p/10584005#M56344</link>
      <description>&lt;P&gt;(handent handle)&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 08:33:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scientific-notation-in-entity-handles/m-p/10584005#M56344</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2021-08-30T08:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific notation in entity handles</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scientific-notation-in-entity-handles/m-p/10584065#M56345</link>
      <description>&lt;LI-CODE lang="general"&gt;(setq 
	A (list 1 "just" "a" "list" (strcat "\"" "124E4" "\""))
	A1 (cons 1 (vl-princ-to-string A))
	A2 (read (cdr A1))
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="general"&gt;A --&amp;gt; (1 "just" "a" "list" "\"124E4\"")
A1 --&amp;gt; (1 . "(1 just a list \"124E4\")")
A2 --&amp;gt; (1 JUST A LIST "124E4")&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 30 Aug 2021 09:05:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scientific-notation-in-entity-handles/m-p/10584065#M56345</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2021-08-30T09:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific notation in entity handles</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scientific-notation-in-entity-handles/m-p/10584069#M56346</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 09:09:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scientific-notation-in-entity-handles/m-p/10584069#M56346</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-30T09:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific notation in entity handles</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scientific-notation-in-entity-handles/m-p/10584076#M56347</link>
      <description>&lt;P&gt;Not a problem. I hope you understand how it works.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 09:12:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scientific-notation-in-entity-handles/m-p/10584076#M56347</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2021-08-30T09:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific notation in entity handles</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scientific-notation-in-entity-handles/m-p/10584110#M56348</link>
      <description>&lt;P&gt;Oh yes, quoting the contents of the string redirects the reader to dump a string, not a symbol it believes is a representation of scientific notation.&lt;BR /&gt;I missed that obvious nugget.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 09:29:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/scientific-notation-in-entity-handles/m-p/10584110#M56348</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-30T09:29:28Z</dc:date>
    </item>
  </channel>
</rss>

