几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   SolidWorks二次开发 (http://www.dimcax.com/hust/forumdisplay.php?f=111)
-   -   【转帖】code to check balloon,dimension overlap (http://www.dimcax.com/hust/showthread.php?t=4658)

yang686526 2009-04-12 08:27 PM

【转帖】code to check balloon,dimension overlap
 
code to check balloon,dimension overlap
hi..
is there a macro available for checking the overlap of dimensions with ballooons in the drawing. also the balloons needs to be repositioned based on the overlap.
thanks,
subbu
i don't know of any macro that does this, and writing one would be a relatively in-depth procedure. you'd have to iterate over every view, then iterate over every balloon, then iterate over every dimension and compare coordinate values to make sure there is sufficient separation, then figure out which direction to move the balloon if it is overlapping...
seems like more trouble than it's worth. i would just open the drawing and fix it manually.
mahir abrahim, cswp/core. cswp/smtl
mechanical design engineer
sw 2009 sp2.1
proe wf3/4
quick


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