<?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 Block attributes auto-update in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/block-attributes-auto-update/m-p/3241202#M15284</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to do the following: import a block reference with attributes among which there are those that should contain the &lt;SPAN&gt;current&amp;nbsp;&lt;/SPAN&gt;coordinates of an entity from that block, and when I move that block those attributes should be updated in order to keep showing the current coordinates, the same way the dimensions are showing actual measurements even when resized.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried to do this with fields in the attributes. But fields are not updated automatically on i.e.&amp;nbsp;&lt;FONT face="andale mono,times"&gt;move&lt;/FONT&gt; command and I read that it could be time consuming for larger drawings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, the question is, how do I do this without developing custom entities?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: I forgot to mention that I'm doing this in Visual C++ 2005 with ObjectARX for AutoCAD 2008.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Nov 2011 10:57:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-11-28T10:57:09Z</dc:date>
    <item>
      <title>Block attributes auto-update</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/block-attributes-auto-update/m-p/3241202#M15284</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to do the following: import a block reference with attributes among which there are those that should contain the &lt;SPAN&gt;current&amp;nbsp;&lt;/SPAN&gt;coordinates of an entity from that block, and when I move that block those attributes should be updated in order to keep showing the current coordinates, the same way the dimensions are showing actual measurements even when resized.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried to do this with fields in the attributes. But fields are not updated automatically on i.e.&amp;nbsp;&lt;FONT face="andale mono,times"&gt;move&lt;/FONT&gt; command and I read that it could be time consuming for larger drawings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, the question is, how do I do this without developing custom entities?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: I forgot to mention that I'm doing this in Visual C++ 2005 with ObjectARX for AutoCAD 2008.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2011 10:57:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/block-attributes-auto-update/m-p/3241202#M15284</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-28T10:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Block attributes auto-update</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/block-attributes-auto-update/m-p/3246962#M15285</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried to do this with fields in the attributes. But fields are not updated automatically on i.e.&amp;nbsp;&lt;FONT face="andale mono,times"&gt;move&lt;/FONT&gt; command and I read that it could be time consuming for larger drawings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, the question is, how do I do this without developing custom entities?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Maybe reactors?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2011 21:34:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/block-attributes-auto-update/m-p/3246962#M15285</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2011-12-01T21:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Block attributes auto-update</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/block-attributes-auto-update/m-p/3246982#M15286</link>
      <description>&lt;P&gt;Could you recommend me something where I can read how to implemet reactors?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2011 21:46:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/block-attributes-auto-update/m-p/3246982#M15286</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-01T21:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Block attributes auto-update</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/block-attributes-auto-update/m-p/3246988#M15287</link>
      <description>&lt;P&gt;&lt;EM&gt;ObjectARX Developer's Guide -&amp;gt; Advanced Topics -&amp;gt;&amp;nbsp;Notification -&amp;gt;&amp;nbsp;Using Reactors&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2011 21:52:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/block-attributes-auto-update/m-p/3246988#M15287</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2011-12-01T21:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Block attributes auto-update</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/block-attributes-auto-update/m-p/3266010#M15288</link>
      <description>&lt;P&gt;Not quite what you want, but I think may help.&lt;/P&gt;&lt;P&gt;Add a handler to the ObjectModified Event thus:-&lt;/P&gt;&lt;PRE&gt;      CurDb = Application.DocumentManager.MdiActiveDocument.Database
      AddHandler CurDb.ObjectModified, AddressOf ObjectModified&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;and add this event.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;   Friend Sub ObjectModified(ByVal sender As Object, ByVal e As Autodesk.AutoCAD.DatabaseServices.ObjectEventArgs)
      If isMod Then Exit Sub
      Dim b As Boolean
      With e.DBObject
         If .IsWriteEnabled Then Exit Sub
         If .Id.ObjectClass.Name = "AcDbAttribute" Then
            Using tr As Transaction = CurDb.TransactionManager.StartTransaction()
               Dim ar As AttributeReference = CType(e.DBObject, AttributeReference)
               With a_Job
                  ar.UpgradeOpen()

' add you code here and if you make an amendment, set b=True

                 If b Then isMod = True : ar.DowngradeOpen() ' isMod prevents loop
               End With
               tr.Commit()
            End Using
         End If
      End With
      isMod = False
   End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Your code will update tags where needed&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2011 17:29:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/block-attributes-auto-update/m-p/3266010#M15288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-16T17:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Block attributes auto-update</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/block-attributes-auto-update/m-p/3266016#M15289</link>
      <description>&lt;P&gt;ps.&lt;/P&gt;&lt;P&gt;You may need to trap the block object instead.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2011 17:31:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/block-attributes-auto-update/m-p/3266016#M15289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-16T17:31:00Z</dc:date>
    </item>
  </channel>
</rss>

