Solidworks Macro Deleting Sketch Stroke

Hello

I'm working on a large file, a sketch with more than 84000 lines... They are all linked in different zones to make an extrusion, all but 1200!

So I have 1200 strokes (found with the repair sketch function) that are wandering around one by one all over my sketch. I think these lines prevent me from doing a direct extrusion without having to select all the areas manually, which takes a lot of time and above all, my pc has a hard time keeping up!

So I wanted to know if there was a way to do it automatically, via a macro, to remove the lines?

Thank you in advance.

And so simply

you were doing a sketch conversion via a string into a new sketch

I think it should work

A trial costs nothing

@+

 

1 Like

Here is a part of the sketch in question... The selection by channels is a good idea, but it will take me a lot of time...

Question is for what purpose

since it's quite heavy 

2 Likes

Yes, it's very heavy!

It's to make a personalized chocolate bar.

Maybe there is another way to automatically select the areas to be extruded to copy them into another sketch?

So you want to make a mold to create chocolate bars

Where does your base image come from?

And what size do you want to make it?

 

It comes from a reworked illustrator file, which I have already cleaned up for the most part to have the extrusion areas.

The size of the plate has no impact on my problem.

Bravo for the best answer

3 Likes