2 Replies Latest reply on Jan 3, 2018 8:06 AM by Alejandro Español

    CutList macro multiple equal bodies

    Willie Roelofs

      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