几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】annotation attachment in leader entity (http://www.dimcax.com/hust/showthread.php?t=15098)

yang686526 2009-05-04 04:00 PM

【转帖】annotation attachment in leader entity
 
annotation attachment in leader entity
annotation attachment in leader entity
i am not able attach annotation in the leader entity. i am using only object id to attach annotation.
what are the necessary parameters to be set before attaching the annotation?
is evaluate leader somewhat similar to recomputedimblock?? do i need to call this function also?
thanks
regards
prakhar
see odwriteex sample. it contains code creating leaders. note that not entity types can be used as annotation.
sergey slezkin
hello,
thanks! now i am able to attach the annotation but the hook line (dogleg in case of mtext) direction is opposite, is there any function to set the direction?
also how to calculate the start point of the annotation?
try to create a leader like you want to make in dd in autocad and look at it and it's annotation parameters.
for example autocad sets text alignment (left/right) depending on leader's direction and changes it if you drag the mtext entity.
if you set only annotation id to leader dd will calculate annotation direction etc. itself.
sergey slezkin


所有的时间均为北京时间。 现在的时间是 05:40 AM.