几何尺寸与公差论坛

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

【转帖】retrieve dimension selection name

[复制链接]
发表于 2009-4-12 19:28:29 | 显示全部楼层 |阅读模式
retrieve dimension selection name
this has been an ongoing difficulty, and i have gotten close on a few tries, but only one solution which is not preferred at all.
the problem :
initial conditions:
display dimension object retrieved from a view.
final condition:
have display dimension name used when selecting an object in solidworks (i.e. the design table name)
conditions:
do not use selection methods. assume selection is not possible.
complications:
origin component of dimension could exist more than once in an assembly which is contained in the root view. this means the unique component name is necessary.
so far the most i can get is a full list of the selection names for the displayed dimensions in the view. this is achieved with view.getdimensionids4(). i was happy with this, but i was not able to get a correlation to the display dimension i found.
i hope someone has found a way to do this.
and yes, i do need to do it this way. the problem has come up many times, and if i could found an algorithm for this, it would make my programs so much easier.
thanks for your help
-anthony
i am conviced anything can be done in solidworks api.
solidworks 7.0 sp2.2
vb.net
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-23 03:47 , Processed in 0.034132 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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