<?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 How to get AutoCAD object data with JavaScript API??? in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-get-autocad-object-data-with-javascript-api/m-p/11472153#M39999</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am right now struggling with the new JavaScript API because of the poor documentation, I learned how to use the API to get points from the user and use the command line of AutoCAD to draw something, but I need also to know:&lt;/P&gt;&lt;P&gt;1- how to use the object id that I get from the user to do something useful.&lt;/P&gt;&lt;P&gt;2- read the output of the command line after the command run, (like LIST command to get the area of an object).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't even know if this things is supported in JavaScript API or not, please help me.&lt;/P&gt;&lt;P&gt;*I am using the AutoCAD desktop app.&lt;/P&gt;&lt;P&gt;*it is even better to give example of the usage or the&amp;nbsp;instructions on how to use it,&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Oct 2022 06:38:21 GMT</pubDate>
    <dc:creator>ryanfrhat123</dc:creator>
    <dc:date>2022-10-10T06:38:21Z</dc:date>
    <item>
      <title>How to get AutoCAD object data with JavaScript API???</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-get-autocad-object-data-with-javascript-api/m-p/11472153#M39999</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am right now struggling with the new JavaScript API because of the poor documentation, I learned how to use the API to get points from the user and use the command line of AutoCAD to draw something, but I need also to know:&lt;/P&gt;&lt;P&gt;1- how to use the object id that I get from the user to do something useful.&lt;/P&gt;&lt;P&gt;2- read the output of the command line after the command run, (like LIST command to get the area of an object).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't even know if this things is supported in JavaScript API or not, please help me.&lt;/P&gt;&lt;P&gt;*I am using the AutoCAD desktop app.&lt;/P&gt;&lt;P&gt;*it is even better to give example of the usage or the&amp;nbsp;instructions on how to use it,&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 06:38:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-get-autocad-object-data-with-javascript-api/m-p/11472153#M39999</guid>
      <dc:creator>ryanfrhat123</dc:creator>
      <dc:date>2022-10-10T06:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get AutoCAD object data with JavaScript API???</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-get-autocad-object-data-with-javascript-api/m-p/11476490#M40000</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;(like LIST command to get the area of an object)&lt;/STRONG&gt;. Correct objects you can get the property Area, similar for length.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Copy this to Acad and select an object (entget ( car (entsel "\nPick something "))) you will see some of the properties exposed.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;No idea with Java, but you should google. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Found this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeaHaven_1-1665541475662.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1126192iDDB63D5E4E76801F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_1-1665541475662.png" alt="SeaHaven_1-1665541475662.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 02:25:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-get-autocad-object-data-with-javascript-api/m-p/11476490#M40000</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2022-10-12T02:25:20Z</dc:date>
    </item>
  </channel>
</rss>

