Hello
I'm in the process of creating a macro and, inevitably, the last step doesn't work.
I want to select a sketch from a part file.
When I hard-code the name of the part in which the sketch is located: OK (example: SelectByID2("Nomdelesquisse@partname@assemablage" etc etc )
When I replace the partname with a variable (which comes from Name2) NOT OK. No compiler error but just nothing happens and its passes in a row. (example: SelectByID2("Nomdelesquisse@&PieceName&@assemablage" etc etc )
Small clarifications: Name2 returns a String and SelectByID2 asks for a name in STRING so that's good (well I think)
My method to catch Name2 works (I placed a spy on my swComp.Name2 line and it's okay I have the socket property)
There you go, if anyone has an idea. I'm a taker!!
Thank you very much