ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AcDbLeader::attachAnnotation() returns eNotApplicable

1 REPLY 1
SOLVED
Reply
Message 1 of 2
WolframKuss12
665 Views, 1 Reply

AcDbLeader::attachAnnotation() returns eNotApplicable

Does anybody know under which circumstances "attachAnnotation()" returns eNotApplicable?

I am attaching a BlockRef to a leader using attachAnnotation and sometimes it returns eNotApplicable. It also probably happens when attaching MTexts.

Both annotation block and leader show up fine in AutoCAD, so obviously they are not completely broken. However when moving the blockref, the leader stays where it is.

The leader is open for write. The Blockref is database resident, but closed. Before (and after) the call to "attachAnnotation()" pLeader->annoType() is kNoAnno.
I can use setAnnotationObjId() and it returns eOk, but again the leader does not follow a movement of the blockref.

 

Maybe it happens when (AutoCAd thinks that) the leader-endpoint is not at the correct positon in reference to the blockref?

1 REPLY 1
Message 2 of 2
owenwengerd
in reply to: WolframKuss12

Incorrect normal or unequal elevation can cause this for mtext.

--
Owen Wengerd
ManuSoft

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost