高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】leader not associative
leader not associative
leader not associative
hi,
i have no success in creating a leader entity associated to a mtext entity. i can't post here my entire code, but i believe i do everything necessary.
add a leader to database, then add a mtext, then call attachannotation. then i call many times, in different points, annotationobjid to verify whether the mtext is still attached.
when saved to file, the leader is not associative.
can you help me?
ciao
marco
attached files
quote:
originally posted by marco.botton
when saved to file, the leader is not associative.
ciao
marco
why you decide what leader is not associative? i have loaded your file in acad and watch associativity ( leader is changed following mtext). the leader has annotationobjid and mtext has reactor.
best regards,
sergey z.
yes, you are right. i fixed something in my code (but what?!?) and now leaders are associative.
ciao
marco
hello,
i am facing the similar problem, can u tell me what was the problem and how you fised it ? i checked in autocad also but its not associated. if i change some of its properties in autocad then it becomes attached to the leader.
do i need to call evaluateleader() function when i move the mtext?
regards
prakhar
now its working fine. actually i was appending the mtext to the database before appending the leader.
now the problem remains is how the movement of normal mtext is different from the one attached to leader? how to kno which mtext is attached to leader?
regards
prakhar
|