Associative parts from cut-list item in weldment

I am working with a macro for automatically put incustomproperty in cut list and generate a part from cut-list.

I can manage to put custom property in the cut-list and alsomakea new part from the body in ut-list, but this new partcontains onlya imported body that is not linked to the body inweldment.

 

My question is how to I make a new part from cut-list thatisassociative with the weldment cut-list body (same as right clickonthe cut-list item and select insert into new part)?

Harald

SolidworksApi macros