几何尺寸与公差论坛

 找回密码
 注册
查看: 788|回复: 0

【转帖】delete dangling 9unattached dimensions0

[复制链接]
发表于 2009-4-13 10:15:25 | 显示全部楼层 |阅读模式
delete dangling (unattached dimensions)
hi,
i am seraching for api to delete dangling dimension from a drawing sheet.can anybody help me with a macro.
i tried deleting them by recognising the color (32896) but i could not succeed
regards,
visy
keyword search the api help file for "dimension, entities". a dangling dimension has at least one entity of type swselnothing.
wayne matus
texas engineering systems
here is what you need:
i am getting all kinds of errors in that program when i try to use it, is anyone using it successfully?
perhaps it is something to do with this last being modified in 2004 and i'm using solidworks 2008??
do you need an api solution to this? or do you just need some faster way?
i need an api solution to this, but this one obviously doesn't work on solidworks 2008.
there is another thread closely related to this one that i posted into as well, so for those interested in this topic, that thread is:
that thread is discussing a way with vba to detect whether or not a dimension is dangling. which would directly relate to being able to write a program to detect dangling dimensions and delete them. which as i said over there:
******************
i know solidworks must have some way of flagging these dimensions as dangling dimensions since there is a setting in drawing options to "hide the dangling dimensions and annotations" and there is another setting to be able to change the color of "dimensions, dangling" in system options.
it would make sense that if solidworks can recognize these dimensions as dangling that i should be able to write a program to delete them all, but i can't figure out what "flag" it uses to tell if the dimension if dangling.
***************
does anyone have any thoughts on this??
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-24 09:44 , Processed in 0.035165 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表