Create a copy of BOM structure

Hi Guys,   I have to create a new BOM structure from existing Part BOM relationship. The action should copy and create new Part and all the levels of BOM from Part BOM relationship. All parts should be create new. Anyone have good idea to do this?   Thanks.