<?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 add notes to an entity in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/add-notes-to-an-entity/m-p/321686#M35310</link>
    <description>I like to know how to add 'Text Notes' and 'Reference Docs'  to an entity in&lt;BR /&gt;
ARX program. These can then be viewed by pomp up menu in 'Notes...' dialog&lt;BR /&gt;
window. Any suggestion?</description>
    <pubDate>Mon, 30 Jun 2003 13:10:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2003-06-30T13:10:40Z</dc:date>
    <item>
      <title>add notes to an entity</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/add-notes-to-an-entity/m-p/321686#M35310</link>
      <description>I like to know how to add 'Text Notes' and 'Reference Docs'  to an entity in&lt;BR /&gt;
ARX program. These can then be viewed by pomp up menu in 'Notes...' dialog&lt;BR /&gt;
window. Any suggestion?</description>
      <pubDate>Mon, 30 Jun 2003 13:10:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/add-notes-to-an-entity/m-p/321686#M35310</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-06-30T13:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: add notes to an entity</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/add-notes-to-an-entity/m-p/321687#M35311</link>
      <description>First of all, these are a part of ADT, so you need to use the OMF libraries&lt;BR /&gt;
in addtion to ObjectARX.&lt;BR /&gt;
&lt;BR /&gt;
For Text Notes, it is simple.  There are two static function of&lt;BR /&gt;
AecDbTextNote:&lt;BR /&gt;
&lt;BR /&gt;
static Acad::ErrorStatus getStandardNote(AcDbObject* obj, AecRmCString&amp;amp;&lt;BR /&gt;
noteStr);&lt;BR /&gt;
&lt;BR /&gt;
static Acad::ErrorStatus setStandardNote(AcDbObject* obj, const&lt;BR /&gt;
AecRmCString&amp;amp; noteStr);&lt;BR /&gt;
&lt;BR /&gt;
So, just open the object you want to attach it to and then call:&lt;BR /&gt;
&lt;BR /&gt;
AecDbTextNote::setStandardNote(obj, "My New Note");&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
For Reference Docs, you simply need to add objects of type AecDbRefDoc to a&lt;BR /&gt;
dictionary that is in the object's extension dictionary.&lt;BR /&gt;
&lt;BR /&gt;
1)  Open the sub-extension dictionary named "AEC_REF_DOCS".  (dictionary&lt;BR /&gt;
within extension dictionary)&lt;BR /&gt;
&lt;BR /&gt;
2)  Create the AecDbRefDoc object&lt;BR /&gt;
&lt;BR /&gt;
3)  Add to the dictionary using an anonymous name:&lt;BR /&gt;
&lt;BR /&gt;
        subExtDict-&amp;gt;setAt("*A", newDocRef, newObjId);&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Jim Awe&lt;BR /&gt;
&lt;BR /&gt;
Autodesk, Inc.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"ziren" &lt;LU&gt; wrote in message&lt;BR /&gt;
news:A9E25A51314A10D73641E6C4FE2D207F@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I like to know how to add 'Text Notes' and 'Reference Docs'  to an entity&lt;BR /&gt;
in&lt;BR /&gt;
&amp;gt; ARX program. These can then be viewed by pomp up menu in 'Notes...' dialog&lt;BR /&gt;
&amp;gt; window. Any suggestion?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/LU&gt;</description>
      <pubDate>Mon, 30 Jun 2003 14:58:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/add-notes-to-an-entity/m-p/321687#M35311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-06-30T14:58:08Z</dc:date>
    </item>
  </channel>
</rss>

