How can i move 2parts in a new component in spaceclaim using for loop when multipleparts are there?

Options

selection = Selection.Create(result.CreatedBodies)
component = ComponentHelper.MoveBodiesToComponent(selection, Info5)
selection = BodySelection.Create(GetRootPart().GetBodies("Bolt"))
result = ComponentHelper.MoveBodiesToComponent(selection, component.CreatedComponents[0], False, Info6)