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?
Solved! Go to Solution.
Solved by owenwengerd. Go to Solution.
Incorrect normal or unequal elevation can cause this for mtext.