Macro: Duplicate sketch

Hello
I regularly draw welding, drilling and inspection jigs in cut sheet metal. The sheets are held together by tenons (nuts) and mortises (CHC screws).

However, I have to manually place each of the mortises on my main sheet and, each time, constrain them in relation to the tenon in order to center them (always 3 constraints).

Do you think it's possible to automate this process? The project seems quite complex to me, especially for a beginner like me who has never done macro, but if I am told that it is feasible then I will take the time it takes to get there.

Thank you in advance for your answers

Hello @Nass_Tdj and welcome to the Forum.

Do you have an example to share? (illustration in conversation, CAD file)

Could you also specify what varies from one size to another?

This is in order to know which paths to go towards (yes there are several: macro, library function, sketch block, smart component, model (PDM pro only))).

1 Like

Hello;
I'm like @Silver_Surfer, I'm missing some visuals.
As well as the version of Solidworks (if we are talking about Solidworks) used.
What are the sketches you want to duplicate (and why only the sketches and not the functions?)
Do you work with assemblies or with derived components?

By the way, for me the mortise and tenon assemblies look like this:
image
And I don't really see the notion of:


Finally, why did you post in the " Macro " section, is this what you expect from us?

1 Like