I would like to make a macro that would allow me to open the plan of the room in which I launch the macro. However, the name of the MEP is only a part of the 3D file name.
My 3D files are called "3D0000M000-1 File Name. Sldprt" and my plans are only called "3D0000M000-1".
They are located in the same folder.
I can't start a search with only these first 12 characters.
If anyone has an idea I'm interested, I'm sure it's not complicated but I'm blocking!
Normally you only need two clicks to open your MEP, CTRL-D + entered or see the letter that is affected ( file == > create a plan and next to it there is the shortcut)
AC Cobra 427 : Since the part is not called exactly like the plane, it does not open.
D.Roger: I tried to integrate the Left function but I get an error 91 when I run it. I think it's the swModel variable that's the problem, but I tried with swModel.GetPathName and it doesn't change anything.
I don't have any more compilation errors but unfortunately the principle doesn't work. The macro sends me the message that it can't find a plan when there is one in the same folder.