<?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: Esri_Attribute_Get Not Pulling Domain Values in ArcGIS for AutoCAD Questions</title>
    <link>https://community.esri.com/t5/arcgis-for-autocad-questions/esri-attribute-get-not-pulling-domain-values/m-p/1718622#M1138</link>
    <description>&lt;P&gt;Thank you for the reply Dan!&lt;BR /&gt;&lt;BR /&gt;From your feedback I have come up with a roundabout way to use an entity's AutoCAD Layer name in a wcmatch cond to specify a variable to use as an "FLNAME" argument.&amp;nbsp; Which appears to be working nicely.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Do you happen to know if there are any other ways to get the name of the Feature Layer of a specific entity?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Aug 2026 13:50:53 GMT</pubDate>
    <dc:creator>TheRrrr42</dc:creator>
    <dc:date>2026-08-05T13:50:53Z</dc:date>
    <item>
      <title>Esri_Attribute_Get Not Pulling Domain Values</title>
      <link>https://community.esri.com/t5/arcgis-for-autocad-questions/esri-attribute-get-not-pulling-domain-values/m-p/1718397#M1136</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm working on an AutoLISP script to create labels with a selection of entities from multiple Feature Layers in AutoCAD. When using Esri_Attributes_Get with an entity name and without specifying a feature layer I'm failing to see the domained values i expect to see. For example; returning 6 vs '6"' or 32 vs 'Cast Iron Pipe'.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In another script of mine that labels an entire feature layer and uses the "FLNAME" argument the values come in with the correct domain description. Below is a snippet of my script.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;(defun c:LabelSelection (/ feats featsLength featsCount entList entName fieldCount label featureAttributes) 
	(setq feats (ssget '((-4 . "&amp;lt;NOT") (0 . "*POLYLINE") (-4 . "NOT&amp;gt;"))))
	(setvar "CMDECHO" 0)
	(setvar "osmode" 0)
	;if selection exists continue
	(if feats
		;determine number of features and get all entities into a list and that list length
		(progn
			(setq featsLength (sslength feats))
			(setq featsCount 0)
			(setq entList nil)
			(repeat featsLength
				(setq entName (ssname feats featsCount))
				(if entName
					(setq entList (cons entName entList))
				);if
				(setq featsCount (+ 1 featsCount))
			);progn
			(setq entList (reverse entList))
			
			;for each entity get its attributes
			(foreach entName entList
				(setq fieldCount 0)
				(setq label "")
				(setq fieldsToLabel nil) ; Clear previous asset properties
				
				(setq featureAttributes (esri_attributes_get entName))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to get this to return the domain values?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also is it possible to get LISP as a code sample language?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2026 18:13:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-autocad-questions/esri-attribute-get-not-pulling-domain-values/m-p/1718397#M1136</guid>
      <dc:creator>TheRrrr42</dc:creator>
      <dc:date>2026-08-04T18:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Esri_Attribute_Get Not Pulling Domain Values</title>
      <link>https://community.esri.com/t5/arcgis-for-autocad-questions/esri-attribute-get-not-pulling-domain-values/m-p/1718610#M1137</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/462549"&gt;@TheRrrr42&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Nice to see you working with the ArcGIS for AutoCAD API and AutoLISP.&lt;/P&gt;&lt;P&gt;I think the key to your issue is as you mention that your other AutoLISP method utilizes the "&lt;EM&gt;flname&lt;/EM&gt;" but not in this new &lt;EM&gt;(esri_attributes_get)&lt;/EM&gt; method. The first bullet of the usage notes is describing why you are more than likely not seeing a return that is expected.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docdev.arcgis.com/en/arcgis-for-autocad/latest/commands-api/esri-attributes-get.htm" target="_self"&gt;esri_attributes_get (AutoLISP)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2026 13:01:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-autocad-questions/esri-attribute-get-not-pulling-domain-values/m-p/1718610#M1137</guid>
      <dc:creator>DanWade</dc:creator>
      <dc:date>2026-08-05T13:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Esri_Attribute_Get Not Pulling Domain Values</title>
      <link>https://community.esri.com/t5/arcgis-for-autocad-questions/esri-attribute-get-not-pulling-domain-values/m-p/1718622#M1138</link>
      <description>&lt;P&gt;Thank you for the reply Dan!&lt;BR /&gt;&lt;BR /&gt;From your feedback I have come up with a roundabout way to use an entity's AutoCAD Layer name in a wcmatch cond to specify a variable to use as an "FLNAME" argument.&amp;nbsp; Which appears to be working nicely.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Do you happen to know if there are any other ways to get the name of the Feature Layer of a specific entity?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2026 13:50:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-autocad-questions/esri-attribute-get-not-pulling-domain-values/m-p/1718622#M1138</guid>
      <dc:creator>TheRrrr42</dc:creator>
      <dc:date>2026-08-05T13:50:53Z</dc:date>
    </item>
  </channel>
</rss>

