This has been an ongoing difficulty, and I have gotten closeon a few tries, but only one solution which is not preferred atall.
The problem :
initial conditions:
Display dimension object retrieved from a view.
final condition:
have Display dimension name used when selecting an object insolidworks (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 anassembly which is contained in the root view. This means the uniquecomponent name is necessary.
so far the most I can get is a full list of the selection names forthe displayed dimensions in the view. This is achieved withview.getdimensionids4(). I was happy with this, but I was not ableto 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 manytimes, and if I could found an algorithm for this, it would make myprograms SO much easier.
Thanks for your help
-AnthonySolidworksApi macros
The problem :
initial conditions:
Display dimension object retrieved from a view.
final condition:
have Display dimension name used when selecting an object insolidworks (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 anassembly which is contained in the root view. This means the uniquecomponent name is necessary.
so far the most I can get is a full list of the selection names forthe displayed dimensions in the view. This is achieved withview.getdimensionids4(). I was happy with this, but I was not ableto 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 manytimes, and if I could found an algorithm for this, it would make myprograms SO much easier.
Thanks for your help
-AnthonySolidworksApi macros