Hello
I am currently developing a macro to generate an assembly from the dimensions of a single part. However, I have a problem when saving the modified parts because I want to do it automatically by a macro. These parts, assemblies, and drawings are saved in a user-specified folder on a UserForm with an index to their names.
Assemblies, parts, and their drawings follow with the right parts because they have the same name. However, with my code, the parts don't follow in the assembly because it recovers the old ones. The principle of my code is to open the assembly, save it as, save it under each modified part and their drawing one by one. Is there another way to do my code or coding in order to take the right parts from the assembly after saving them? (I thought about replacing parts but I can't get its code to work).
Otherwise, it would be easier to open the save as window in solidworks so that the user specifies the location of a part and its name each time. But I don't know the VBA command!
Thanks for your help, my macro is provided!
macro36.swp