几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】leader and arrow types (http://www.dimcax.com/hust/showthread.php?t=17024)

yang686526 2009-05-06 04:43 PM

【转帖】leader and arrow types
 
leader and arrow types
leader and arrow types
hello,
i have problems getting the correct arrow type name from leader entity:
i use similar code as at parsing ordinary dimension arrow types:
oddbdimstyletablerecord dimstyle;
pleaderent->getdimstyledata(&dimstyle);
acadarrows1=oddmutil::arrowname(dimstyle.dimblk()) ;
i have tried also dimblk1 and dimblk2:
acadarrows1=ddmutil::arrowname(dimstyle.dimblk1()) ;
acadarrows2=ddmutil::arrowname(dimstyle.dimblk2()) ;
but the library allways returns null objectid (empty string).
can anyone help me how to get the correct arrow type? or is this maybe a bug in the library?
i am sending an example drawing:
regards, tomaz.
attached files
ldrblk variable is responsible for leader's arrow head.
sergey slezkin
sergey,
thanks for help. it works now.
regards, tomaz


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