add notes to an entity

add notes to an entity

Anonymous
Not applicable
429 Views
1 Reply
Message 1 of 2

add notes to an entity

Anonymous
Not applicable
I like to know how to add 'Text Notes' and 'Reference Docs' to an entity in
ARX program. These can then be viewed by pomp up menu in 'Notes...' dialog
window. Any suggestion?
0 Likes
430 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
First of all, these are a part of ADT, so you need to use the OMF libraries
in addtion to ObjectARX.

For Text Notes, it is simple. There are two static function of
AecDbTextNote:

static Acad::ErrorStatus getStandardNote(AcDbObject* obj, AecRmCString&
noteStr);

static Acad::ErrorStatus setStandardNote(AcDbObject* obj, const
AecRmCString& noteStr);

So, just open the object you want to attach it to and then call:

AecDbTextNote::setStandardNote(obj, "My New Note");



For Reference Docs, you simply need to add objects of type AecDbRefDoc to a
dictionary that is in the object's extension dictionary.

1) Open the sub-extension dictionary named "AEC_REF_DOCS". (dictionary
within extension dictionary)

2) Create the AecDbRefDoc object

3) Add to the dictionary using an anonymous name:

subExtDict->setAt("*A", newDocRef, newObjId);



Jim Awe

Autodesk, Inc.



"ziren" wrote in message
news:A9E25A51314A10D73641E6C4FE2D207F@in.WebX.maYIadrTaRb...
> I like to know how to add 'Text Notes' and 'Reference Docs' to an entity
in
> ARX program. These can then be viewed by pomp up menu in 'Notes...' dialog
> window. Any suggestion?
>
>
>
0 Likes