Macro for converting all parts of an assembly to step format (AP214)

Hello

I'm looking for a solution that is not too complicated to convert all the parts of an assembly created on solidworks to the AP214 step format. I think the easiest way should be to go through a macro?
The fact is that I have more than 1000 assemblies composed of a hundred elements each. So I wondered if I could save myself from having to go through the recording of each of the elements one by one.

In short, if you have an idea that could help me, I'm all for it... Thank you in advance. :)

Hello

If you have the MyCad suite, there's BatchConverter to help you out!

2 Likes

No, we do not have the MyCad suite in my company...
That's why I was maybe looking for a solution via a macro for example.

Hello

It was based on a plan, but if you adapt it, it must do it, see http://www.lynkoa.com/forum/solidworks/une-macro-pour-sw-qui-save-step-%C3%A0-partir-de-la-mise-ne-plan

Kind regards

Thank you d.roger, I'll look into it in detail. On the other hand I don't know if I'm not going too far there... Or I'm going to ask for training as a macro coder in my next personal interview with my boss. I'm more than new to using macros. So, it scares me a little, I must admit.
I'm going to read this more closely to start.

Of course, training on writing macros can't hurt.

For your macro, the principle can be as follows:

- Opening of assembly n°1.

- Analysis of the list of components of this assembly.

- for each component, opening it, saving it in step format, closing the 3D.

- Save the parent assembly in step format.

- Closing this assembly.

- Opening of assembly n°2.

- Same treatment as for assembly 1.

and so on....

Be careful, it is necessary to manage the fact that one of the child elements can be an assembly, so it must also undergo the processing on these child elements.

Another point to manage is that an element can already be converted to a step and therefore does not need to be reprocessed.

Given the number of assemblies and the number of components announced, I hope you have a little time ahead of you: 1000 assemblies x 100 parts x about 20 seconds per part must be about 550 hours of non-stop processing, it's also an important point to manage in terms of the risk of errors ....

Kind regards

2 Likes

In fact, these assemblages are divided into zones. Each zone is composed of 20 to 40 assemblies. I have a schedule to respect on the sending of each of the zones. So I think it's doable since I have 2 to 3 weeks between each area before they are transmitted. So I was thinking of generating my steps at night when no one would have to be bothered by the creation of these files.
Originally, I was asked for the step of the assembly (which I have already prepared). But I have just been asked now if I can also supply each of the parts separately in step format.
Before I tell them that it's not possible, I prefer to see all the possibilities available to me. And if they manage to find a solution for me and I can do it, so much the better. In any case, thank you...

If you don't know programming, I recommend Frédéric's solution which is the simplest, just take the MyCad suite which will surely have a lower cost than the time you will spend struggling with a method that you don't necessarily master.

In addition, you can run this via the taskplanner (MyCad tool as well) by scheduling it at a certain time.

When you look at the time to spend and the time to gain, the option is not that expensive.

1 Like

Solidworks Task Scheduler

4 Likes

I'm going to check out the MyCad page to see if it's possible at first and if this product can be sold in Switzerland (and that's where I'm afraid it won't work).
I imagined at worst asking an intern to open the assembly, launch a macro like "analyze the parts, save the parts individually in *step AP214 format, close the assembly". Each piece cannot have a duplicate because it is unique to the location of the area, so I don't have to try to see if the share has already been converted in the past.

1 Like

@max59,

That's not stupid, and so much simpler!!!!!

3 Likes

THANK YOU MAX59!!
I have just discovered this wonderful tool (we learn a lot every day).
As a result, the deal is over. And thank you to everyone who participated.

1 Like