CutList macro multiple equal bodies

Hi,

See attached for the 2 codes.

What am I trying to do?

In the first code, each time more there are more than one solid bodies in a cutlist folder, that means there are more then one equal bodies. Therefore I only select the first one.

When I press play the code works:

- It saves each single body

- it saves each single body into an assembly

- it saves the assembly

But when I open the assembly there are pieces missing.

The bodies that I did not select were not saved. I haven't told SolidWorks to duplicate them.

How do I tell SolidWorks to duplicate the bodies?

I've tried to tell SoldiWorks to give the exact name to a structural member if it's origin is from the same cutlist as an other one.

But SolidWorks doesn't understand that and tries to save multiple parts with the same name in the same location and gives an error as result.

Please help,

Willie

SolidworksApi macros
Answers 3
SF
SF 2015-06-15 Best Answer

In other words, How do I turn on the option "Derive resulting parts from similar bodies or cut list"?

AE
AE 2018-01-03

I think that is not possible for now

MM
MM 2019-01-15

Hi Willie,

I think we have the same problem , i've just seen the other thread ​, i don't think this is possible, i've manged to export all files but i have multiple replicated parts with different names.