Link solid file and drawing file in SW22

Hello

In an assembly, if I open a part, save it as, the new file is replaced in the assembly.

On the other hand, SW2022 does not create the drawing file associated with the original file for the new part when you do this operation to save as....

Do you have an idea of the procedure to follow or the possible option to check to generate the creation of the new drawing?

Hello

To be able to duplicate the part + its MEP, it is better to go through a Pack and Go.

From the assembly, open the part and instead of doing "file\save as", do "file\pack and go".

This allows you to keep the link between the room and the MEP, you can rename your room and its MEP and save them in another folder if necessary.

Kind regards.

Hello;
Otherwise you can use the following macro (attached).
(it is derived from that of: https://www.codestack.net/solidworks-api/document/assembly/components/make-independent-drawing/)

I've added an exclusion if the selected component is an element of a repeat.
(see discussion: https://www.lynkoa.com/forum/conception-3d/macro-identifier-repetition-assemblage?page=0#answer-)


Be careful though: This macro copies the component (part or assembly) with its drawing, all under a new name, but it also replaces the original component with its new copy.
A CTRL+Z will restore the original component to its assembly.


Register-sous_avec_mep.swp