I found the solution. I want to share it with you just in case another user have the same doubt.
First of all, I need to select the line which corresponds with the edge I want, then I search the edge of this line in my previous selection. Here is the code.
Dim objSel As Selection, oSel As...
I have noticed that I need to select edges, not lines, I did not know the difference, now I did.
I have tried with the function search and I can find all the edges of the model, but I do not know how to select the edge that I want. I am sure that it must exist a better way to do it, and I hope...
I tried but VBA only allows me to do that if the geometry can be selected from the tree. In that case it can't be selected from the tree, it must be selected clicking directly on the line in the 3D model.
Hi Ferdo,
First of all, thank you for your post.
I know what you mean, but my idea is that the macro could automatically select this edges, not the user. I mean, I know exactly which edge correspond to each shuttle, so it is better to do it in the macro.
Thank you again for you responses...
Hello, I am trying to create a VBA macro which automatically create tracks in the DMU Fitting module.
For doing that, I need a shuttle, which represents the part I want to move and a line, which represents the track (path of the part in a dissasembly, for example). Then I select the "Generate...