高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】last vertex in leader entity
last vertex in leader entity
last vertex in leader entity
hello,
does dd calculate the last vertex in leader entity (in case of annotation)?
i am appending 3 vertices (4,4), (8,6) and (5,7) and then attaching a mtext annotation. when i call vertexat function it returns me these 3 vertices only , instead of the last one being (4.82,7).
i am not setting annotation height or width, does it affect the calculation?
regards
prakhar
yes, dwgdirect recalculates last leader's vertex based on annotation position, width, height, justification, direction etc.
sergey slezkin
how do i calculate annotation position before getting the last vertex?
right now i am adding or substracting dimgap value from the last vertex and setting it as the annotation position.
the leader entity is drawn correctly but the direction of the last vertex is coming oppsite.
prakhar
try to create a leader in autocad (similar to what you want to make in dd) and examine annotation properties.
note that horizontal text alignment (left/right) depends on leaders direction.
sergey slezkin
hooklineonxdir
on creating leader the function ishooklineonxdir() is always returning true, because of which direction is coming opposite to what it should be.
what parameters affect the calculation for hookline direction?
regards
prakhar
after annotation is attached evaluateleader() which is called at closing the leader updates hooklineonxdir flag depending on last segment direction, position, justification and orientation of annotation.
sergey slezkin
its working fine now. thanks a lot!
regards
prakhar
|