<?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: Assign block attribute value from text near the block in AutoCAD Map 3D Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/assign-block-attribute-value-from-text-near-the-block/m-p/12746267#M856</link>
    <description>&lt;P&gt;For any AutoCAD, can use &lt;A href="https://forums.autodesk.com/t5/community-classifieds/xdtools-an-open-project-for-creating-tools-for-xdata/m-p/10532229#M8684" target="_blank" rel="noopener"&gt;&lt;EM&gt;XDLabel&lt;/EM&gt; and &lt;EM&gt;XDTOOLS&lt;/EM&gt;&lt;/A&gt; - not on OD, but on XData.&lt;BR /&gt;Similarly:&lt;BR /&gt;1. Create an XData definition - &lt;EM&gt;XDTOOLS_MDEFINE&lt;/EM&gt;.&lt;BR /&gt;2. Attach these XData to the desired objects - &lt;EM&gt;XDTOOLS_ADD&lt;/EM&gt;.&lt;BR /&gt;3. Link inscriptions and objects - &lt;EM&gt;XDLABEL_LINK&lt;/EM&gt;. The content of the inscriptions located within the specified tolerance will be loaded into the XData field.&lt;BR /&gt;2. Transfer the content of the XData field to the attribute - &lt;EM&gt;XDTOOLS_2ATTR&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;XDLabel&lt;/EM&gt; has advantages:&lt;BR /&gt;1. Not only Text, but also MText, Leader, MLeader can be linked to objects.&lt;BR /&gt;2. Can link inscriptions to objects of many types. For example, can associate the nearest MLeader with &lt;EM&gt;_facade_cable&lt;/EM&gt; polylines. Etc.&lt;BR /&gt;3. The created connection is maintained - when moving an object, when changing its shape, the inscriptions after &lt;EM&gt;XDLABEL_UPDATE&lt;/EM&gt; will be moved accordingly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;XData can be converted to OD if necessary - &lt;STRONG&gt;CADaSchtroumpf&lt;/STRONG&gt; had programs for this. Or XData can be uploaded to csv. And from csv can load it to OD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 May 2024 15:25:59 GMT</pubDate>
    <dc:creator>АлексЮстасу</dc:creator>
    <dc:date>2024-05-01T15:25:59Z</dc:date>
    <item>
      <title>Assign block attribute value from text near the block</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/assign-block-attribute-value-from-text-near-the-block/m-p/12745626#M854</link>
      <description>&lt;P&gt;The attached example is a small portion of a map with tens of thousands of such connections; the connection block is the yellow circle and it has attributes attached to it. Is it possible to have the blocks automatically update the H_NUMBER attribute within the block from the nearest DTEXT Content field, assuming it's always the house number?&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 10:10:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/assign-block-attribute-value-from-text-near-the-block/m-p/12745626#M854</guid>
      <dc:creator>ionita_traian81</dc:creator>
      <dc:date>2024-05-01T10:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Assign block attribute value from text near the block</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/assign-block-attribute-value-from-text-near-the-block/m-p/12746150#M855</link>
      <description>&lt;P&gt;ODEDIT (&lt;STRONG&gt;through 2019&lt;/STRONG&gt;) will do that:&lt;BR /&gt;1. Create &lt;EM&gt;Object Data&lt;/EM&gt; for house numbers. Let's say &lt;EM&gt;OD&lt;/EM&gt; "home" with the character field "num". &lt;EM&gt;ADEDEFDATA&lt;/EM&gt;.&lt;BR /&gt;2. Attach these &lt;EM&gt;ODs&lt;/EM&gt; to the "&lt;EM&gt;conn&lt;/EM&gt;" blocks. &lt;EM&gt;ADEATTACHDATA&lt;/EM&gt; or &lt;EM&gt;ODEDIT_ADEATTACHDATA&lt;/EM&gt;&lt;BR /&gt;3. Load the content of the nearest Texts into &lt;EM&gt;OD&lt;/EM&gt; - &lt;EM&gt;Set from text, ODEDIT_SETTEXT&lt;/EM&gt;.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="set_from_text.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1357074i6AA6A1A0EC92D23F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="set_from_text.png" alt="set_from_text.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;4. Make txt of &lt;EM&gt;block-attribute --&amp;gt; OD-field&lt;/EM&gt; correspondences - see &lt;EM&gt;home_num.txt&lt;/EM&gt;.&lt;BR /&gt;5. Assign avalue from the &lt;EM&gt;OD&lt;/EM&gt; field to an attribute - &lt;EM&gt;Upload to attributes, ODEDIT_STORE_ATTRS&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="upload_to_attributes.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1357076i7ED956DEA02F5D81/image-size/medium?v=v2&amp;amp;px=400" role="button" title="upload_to_attributes.png" alt="upload_to_attributes.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(For illustration purposes, I made the H_NUMBER attribute visible)&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 14:57:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/assign-block-attribute-value-from-text-near-the-block/m-p/12746150#M855</guid>
      <dc:creator>АлексЮстасу</dc:creator>
      <dc:date>2024-05-01T14:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Assign block attribute value from text near the block</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/assign-block-attribute-value-from-text-near-the-block/m-p/12746267#M856</link>
      <description>&lt;P&gt;For any AutoCAD, can use &lt;A href="https://forums.autodesk.com/t5/community-classifieds/xdtools-an-open-project-for-creating-tools-for-xdata/m-p/10532229#M8684" target="_blank" rel="noopener"&gt;&lt;EM&gt;XDLabel&lt;/EM&gt; and &lt;EM&gt;XDTOOLS&lt;/EM&gt;&lt;/A&gt; - not on OD, but on XData.&lt;BR /&gt;Similarly:&lt;BR /&gt;1. Create an XData definition - &lt;EM&gt;XDTOOLS_MDEFINE&lt;/EM&gt;.&lt;BR /&gt;2. Attach these XData to the desired objects - &lt;EM&gt;XDTOOLS_ADD&lt;/EM&gt;.&lt;BR /&gt;3. Link inscriptions and objects - &lt;EM&gt;XDLABEL_LINK&lt;/EM&gt;. The content of the inscriptions located within the specified tolerance will be loaded into the XData field.&lt;BR /&gt;2. Transfer the content of the XData field to the attribute - &lt;EM&gt;XDTOOLS_2ATTR&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;XDLabel&lt;/EM&gt; has advantages:&lt;BR /&gt;1. Not only Text, but also MText, Leader, MLeader can be linked to objects.&lt;BR /&gt;2. Can link inscriptions to objects of many types. For example, can associate the nearest MLeader with &lt;EM&gt;_facade_cable&lt;/EM&gt; polylines. Etc.&lt;BR /&gt;3. The created connection is maintained - when moving an object, when changing its shape, the inscriptions after &lt;EM&gt;XDLABEL_UPDATE&lt;/EM&gt; will be moved accordingly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;XData can be converted to OD if necessary - &lt;STRONG&gt;CADaSchtroumpf&lt;/STRONG&gt; had programs for this. Or XData can be uploaded to csv. And from csv can load it to OD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 15:25:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/assign-block-attribute-value-from-text-near-the-block/m-p/12746267#M856</guid>
      <dc:creator>АлексЮстасу</dc:creator>
      <dc:date>2024-05-01T15:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Assign block attribute value from text near the block</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/assign-block-attribute-value-from-text-near-the-block/m-p/12749929#M857</link>
      <description>&lt;P&gt;You're a saint; I've yet to try the solutions since we're in holiday (1st of May and now Easter) but you're giving me high hopes it can be done. As soon as I return to the computer I'll give both solutions a try and let you know how it goes.&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: It works! XDTOOLS does it for me, ODEDIT does not work on my version of Autocad.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 09:59:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/assign-block-attribute-value-from-text-near-the-block/m-p/12749929#M857</guid>
      <dc:creator>ionita_traian81</dc:creator>
      <dc:date>2024-05-07T09:59:45Z</dc:date>
    </item>
  </channel>
</rss>

