Hi everyone!
After research, and macro recording function, I managed to replace a component via macro! =)
It's cool, it works, and you can change anything by anything else (you have to know what you do on the assembly basically)
That's all well and good, but... I was only able to do a "GetSelectedObjectsComponent" =(
So the back and forth between solidworks and excel to continue (if there are ever several replacements to be made) is a shame.
So my question would be: "Would there be a way in vba to select an object in the design tree?"
As we do to select a file in a folder for example, a variable "filename" that we put in the code like "open(filename.sldprt)^^
There you go, once again I'm coming to bother you, forgive me
Friendly
Yoann