|
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 |
|