<?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 Ynt: Applying Field to Multiple Objects in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/applying-field-to-multiple-objects/m-p/9495046#M105567</link>
    <description>&lt;P&gt;Thank you very much! you have saved me a LOT of time!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 May 2020 05:23:22 GMT</pubDate>
    <dc:creator>paulmcclafferty4</dc:creator>
    <dc:date>2020-05-06T05:23:22Z</dc:date>
    <item>
      <title>Applying Field to Multiple Objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/applying-field-to-multiple-objects/m-p/9491927#M105564</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to use the FIELD function to extract attributes from multiple objects at once.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "roadnamela" is the attribute I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are 4 roads in the attached drawing sample, however my aim is to name hundreds of roads using this method if I can complete this action at once.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for the help.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 03:30:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/applying-field-to-multiple-objects/m-p/9491927#M105564</guid>
      <dc:creator>paulmcclafferty4</dc:creator>
      <dc:date>2020-05-05T03:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Applying Field to Multiple Objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/applying-field-to-multiple-objects/m-p/9491943#M105565</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;FONT color="#999999"&gt;&lt;EM&gt;I need to use the FIELD function to extract attributes from multiple objects at once.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;to extract attributes in AutoCAD you can use&amp;nbsp;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;D&lt;/STRONG&gt;&lt;STRONG&gt;ATAEXTRACTION&lt;/STRONG&gt;&lt;/FONT&gt; command . &amp;gt;&amp;gt; &lt;A href="https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2018/ENU/AutoCAD-DidYouKnow/files/GUID-D9FCC3B0-AD0B-49CD-9A64-D3A2CE682903-htm.html" target="_blank" rel="noopener"&gt;Click&lt;/A&gt; &amp;lt;&amp;lt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 03:35:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/applying-field-to-multiple-objects/m-p/9491943#M105565</guid>
      <dc:creator>imadHabash</dc:creator>
      <dc:date>2020-05-05T03:35:00Z</dc:date>
    </item>
    <item>
      <title>Ynt: Applying Field to Multiple Objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/applying-field-to-multiple-objects/m-p/9495028#M105566</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7541345"&gt;@paulmcclafferty4&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/508410"&gt;@imadHabash&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attribute Block Multiple Select and mText &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Serkan ÇAVUŞLAR&lt;/P&gt;&lt;P&gt;CplCAD İstanbul / Türkiye&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;	(defun c:attmt(/ aDoc aSp oSiz bSet aLst cLst tStr nTxt bCtr Tags TextInsert)
		(setq Tags nil)
		(setq TextInsert T)
		
		(defun GetBoundingCenter (vlaObj / blPt trPt cnPt)
			(vla-GetBoundingBox vlaObj 'minPt 'maxPt)
			(setq	blPt (vlax-safearray-&amp;gt;list minPt)
					trPt (vlax-safearray-&amp;gt;list maxPt)
					cnPt (vlax-3D-point (list (+ (car blPt) (/ (- (car trPt)(car blPt)) 2.0)) (+ (cadr blPt) (/ (- (cadr trPt)(cadr blPt))2.0)) 0.0))
			)
		)
		
		(if (not Size) (setq Size(getvar "TEXTSIZE")))
		(setq  oSiz Size
			   Size (getreal (strcat "\nText size &amp;lt;"(rtos Size)"&amp;gt;: "))
		)
		(if (null Size)(setq Size oSiz))
		(setq aDoc (vla-get-ActiveDocument(vlax-get-acad-object)))
		
		(if (= 1 (vla-get-ActiveSpace aDoc))
			(setq aSp (vla-get-ModelSpace aDoc))
			(setq aSp (vla-get-PaperSpace aDoc))
		)
		
		(if (setq bSet (ssget '((0 . "INSERT"))))
			(progn
				(foreach b (mapcar 'vlax-ename-&amp;gt;vla-object (vl-remove-if 'listp (mapcar 'cadr (ssnamex bSet))))
					(setq	aLst '()
							tStr ""
					)
					(if TextInsert
						(setq bCtr(GetBoundingCenter b))
						(setq bCtr(vla-get-InsertionPoint b))
					)
					(if ;(and 
							(= :vlax-true (vla-get-HasAttributes b))
						;	(safearray-value
						;		(setq atts (vlax-variant-value (vla-getattributes b)))
						;	)
						;	(foreach tag (vlax-safearray-&amp;gt;list atts)
						;		(= (vla-get-tagstring tag) "roadnamela")
						;	)
						;)
						(progn
							(setq aLst (mapcar '(lambda (a) 
								(if (= (vla-get-TagString a) "roadnamela")
									(list (vla-get-TagString a) (vla-get-TextString a))
									(list "" "")
								)
								
								) (vlax-safearray-&amp;gt;list (vlax-variant-value (vla-GetAttributes b)))))
							(foreach i (reverse aLst)
								(setq tStr (strcat tStr (if Tags (strcat (car i) ": ") "") (last i) "\\P"))
							)
							(if (/= "" tStr)
								(progn
									(setq nTxt (vla-AddMText aSp bCtr (* Size 30.0) tStr))
									(vla-put-Height nTxt Size)
								)
							)
						)
					)
				)
				(vla-EndUndoMark aDoc)
			)
		)
	 (princ)
	)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 04:57:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/applying-field-to-multiple-objects/m-p/9495028#M105566</guid>
      <dc:creator>serkancavuslar</dc:creator>
      <dc:date>2020-05-06T04:57:11Z</dc:date>
    </item>
    <item>
      <title>Ynt: Applying Field to Multiple Objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/applying-field-to-multiple-objects/m-p/9495046#M105567</link>
      <description>&lt;P&gt;Thank you very much! you have saved me a LOT of time!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 05:23:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/applying-field-to-multiple-objects/m-p/9495046#M105567</guid>
      <dc:creator>paulmcclafferty4</dc:creator>
      <dc:date>2020-05-06T05:23:22Z</dc:date>
    </item>
    <item>
      <title>Ynt: Applying Field to Multiple Objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/applying-field-to-multiple-objects/m-p/9868189#M105568</link>
      <description>&lt;P&gt;I don't understand, is this a script I need to run?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 19:35:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/applying-field-to-multiple-objects/m-p/9868189#M105568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-13T19:35:12Z</dc:date>
    </item>
    <item>
      <title>Ynt: Applying Field to Multiple Objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/applying-field-to-multiple-objects/m-p/9927122#M105569</link>
      <description>&lt;P&gt;This is autolisp code, you save the code as a text file with the extension .lsp (you can also download it from&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3762863"&gt;@serkancavuslar&lt;/a&gt;&amp;nbsp;'s post.)&lt;BR /&gt;&lt;BR /&gt;You can add the code to your AutoCad with the command _APPLOAD&lt;BR /&gt;&lt;BR /&gt;Once you have done so you can call the command from the command bar (in this case the command is ATTMT - you can always recognize it because it is prefaced with the code: " defun c: " )&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 16:05:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/applying-field-to-multiple-objects/m-p/9927122#M105569</guid>
      <dc:creator>Michiel.Valcke</dc:creator>
      <dc:date>2020-12-09T16:05:04Z</dc:date>
    </item>
    <item>
      <title>Ynt: Applying Field to Multiple Objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/applying-field-to-multiple-objects/m-p/11951200#M105570</link>
      <description>&lt;P&gt;hello!&lt;/P&gt;&lt;P&gt;I would like to know if it would be possible to do the same with the properties of hathces&lt;BR /&gt;I have tested the lsp with hatches and it does not recognize them as objects&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance for your time!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 10:18:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/applying-field-to-multiple-objects/m-p/11951200#M105570</guid>
      <dc:creator>aponsBA4NG</dc:creator>
      <dc:date>2023-05-09T10:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Applying Field to Multiple Objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/applying-field-to-multiple-objects/m-p/11973522#M105571</link>
      <description>&lt;P&gt;I want to use this script to assign text showing the elevation location of each point. what would&amp;nbsp;&lt;BR /&gt;I have to change in that script to make it work?&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 18:13:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/applying-field-to-multiple-objects/m-p/11973522#M105571</guid>
      <dc:creator>joelTFPVU</dc:creator>
      <dc:date>2023-05-18T18:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Applying Field to Multiple Objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/applying-field-to-multiple-objects/m-p/11973587#M105572</link>
      <description>&lt;P&gt;For example, I can link a text displaying the field value of Position Z for each point. But If I have 238 elevation points I don't want to manually do each one. Can a similar script be ran for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 18:38:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/applying-field-to-multiple-objects/m-p/11973587#M105572</guid>
      <dc:creator>joelTFPVU</dc:creator>
      <dc:date>2023-05-18T18:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Applying Field to Multiple Objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/applying-field-to-multiple-objects/m-p/11973618#M105573</link>
      <description>If you have an AutoCAD full version (not LT) then you should also have access to the AutoCAD MAP 3D toolset (you have to install it as a separate software, but it is included in the same license) you can add text labeling for such things directly with AutoCAD MAP 3D workflows, no need to use fields.</description>
      <pubDate>Thu, 18 May 2023 18:53:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/applying-field-to-multiple-objects/m-p/11973618#M105573</guid>
      <dc:creator>Michiel.Valcke</dc:creator>
      <dc:date>2023-05-18T18:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Applying Field to Multiple Objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/applying-field-to-multiple-objects/m-p/11973714#M105574</link>
      <description>&lt;P&gt;Thanks, yeah I do have the full version. I just downloaded the AutoCad Map 3D.&lt;/P&gt;&lt;P&gt;I will play around with that,&amp;nbsp; see if I can figure it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 19:31:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/applying-field-to-multiple-objects/m-p/11973714#M105574</guid>
      <dc:creator>joelTFPVU</dc:creator>
      <dc:date>2023-05-18T19:31:27Z</dc:date>
    </item>
  </channel>
</rss>

