<?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 Getting geometry of features using esri_attributes_get in ArcGIS for AutoCAD Questions</title>
    <link>https://community.esri.com/t5/arcgis-for-autocad-questions/getting-geometry-of-features-using-esri-attributes/m-p/1712954#M1129</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I'm currently working on an AutoLISP script for creating labels using multiple fields for features that are visible within a layer. I will preface that I'm not super familiar with AutoCAD or AutoLISP, I'm curious to see if anyone has any experience or ideas for the following questions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script currently loops through a esri_featurelayer_select and uses esri_attributes_get on each entity in the layer. Then, it puts some of the attributes into independent variables to be used for mtext/mleaders. I've got the script is looping and pulling the attributes I need correctly into variables and are showing up in princ statements.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm curious if there is anyway that I can get the geometry of these features using these commands? Can the EntityHandle be used to get these attributes?&amp;nbsp; I'm hoping that the geometry can then be used as inputs to a mtext or mleader commands along with the attributes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, is there a way that users can select features in the model space and only use those features as input for the esri_attributes_get?&lt;/P&gt;&lt;P&gt;Happy to share my current script and to answer any questions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jul 2026 15:54:12 GMT</pubDate>
    <dc:creator>TheRrrr42</dc:creator>
    <dc:date>2026-07-07T15:54:12Z</dc:date>
    <item>
      <title>Getting geometry of features using esri_attributes_get</title>
      <link>https://community.esri.com/t5/arcgis-for-autocad-questions/getting-geometry-of-features-using-esri-attributes/m-p/1712954#M1129</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I'm currently working on an AutoLISP script for creating labels using multiple fields for features that are visible within a layer. I will preface that I'm not super familiar with AutoCAD or AutoLISP, I'm curious to see if anyone has any experience or ideas for the following questions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script currently loops through a esri_featurelayer_select and uses esri_attributes_get on each entity in the layer. Then, it puts some of the attributes into independent variables to be used for mtext/mleaders. I've got the script is looping and pulling the attributes I need correctly into variables and are showing up in princ statements.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm curious if there is anyway that I can get the geometry of these features using these commands? Can the EntityHandle be used to get these attributes?&amp;nbsp; I'm hoping that the geometry can then be used as inputs to a mtext or mleader commands along with the attributes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, is there a way that users can select features in the model space and only use those features as input for the esri_attributes_get?&lt;/P&gt;&lt;P&gt;Happy to share my current script and to answer any questions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2026 15:54:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-autocad-questions/getting-geometry-of-features-using-esri-attributes/m-p/1712954#M1129</guid>
      <dc:creator>TheRrrr42</dc:creator>
      <dc:date>2026-07-07T15:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Getting geometry of features using esri_attributes_get</title>
      <link>https://community.esri.com/t5/arcgis-for-autocad-questions/getting-geometry-of-features-using-esri-attributes/m-p/1713272#M1130</link>
      <description>&lt;DIV&gt;&lt;P&gt;Hi! It's great that you're looking into AutoLISP it's a good tool for customizing ArcGIS for AutoCAD. You're on the right track, and I would use those exact methods for what you're trying to accomplish.&lt;/P&gt;&lt;P&gt;If it's helpful, we recently published an AutoLISP sample that does something similar. It might give you some inspiration, so feel free to grab it and modify it as needed:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/ArcGIS-for-AutoCAD-API-Samples/tree/main/Samples/LabelFromMultipleFields/AutoLisp" target="_blank" rel="noopener"&gt;AutoLISP Label From Multiple Fields Sample&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For the MLeader question, you can retrieve the geometric properties using the handle. You'll first need to convert the handle to an entity name using the AutoLISP &lt;STRONG&gt;&lt;EM&gt;handent&lt;/EM&gt; &lt;/STRONG&gt;method:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/ACD/2026/ENU/?guid=GUID-AF6DD533-1A24-4687-96EB-F03F26050C07" target="_blank" rel="noopener"&gt;handent Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Once you have the entity name, you can use &lt;STRONG&gt;&lt;EM&gt;entget&lt;/EM&gt; &lt;/STRONG&gt;to access the entity's DXF properties:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/ACD/2026/ENU/?guid=GUID-12540DAE-C84B-4BDB-AEEC-DDFE5BE3C42A" target="_blank" rel="noopener"&gt;entget Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;With the entity name and DXF properties from &lt;EM&gt;&lt;STRONG&gt;entget&lt;/STRONG&gt;&lt;/EM&gt;, creating an MLeader should be fairly straightforward. You'll just need to add some logic to your script to calculate the placement and position the MLeader where you want it.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Jul 2026 15:38:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-autocad-questions/getting-geometry-of-features-using-esri-attributes/m-p/1713272#M1130</guid>
      <dc:creator>Randy_Garcia</dc:creator>
      <dc:date>2026-07-08T15:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Getting geometry of features using esri_attributes_get</title>
      <link>https://community.esri.com/t5/arcgis-for-autocad-questions/getting-geometry-of-features-using-esri-attributes/m-p/1715852#M1131</link>
      <description>&lt;P&gt;Thank you Randy! I have been able to get the geometry and multiple fields printing to an mleader as I had hoped!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2026 16:07:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-autocad-questions/getting-geometry-of-features-using-esri-attributes/m-p/1715852#M1131</guid>
      <dc:creator>TheRrrr42</dc:creator>
      <dc:date>2026-07-22T16:07:19Z</dc:date>
    </item>
  </channel>
</rss>

