Making selected vertices into another object

How do you make a group of selected vertices/faces/edges whatever, into a new mesh?

-WiFi Walrus

do you mean how to make selectet faces etc. into a new object?
just make your selection, duplicate it with shift-D and press P for separate selectet. if you go now in object mode you have your selection in a new object.

Hi,

I need to do this by script (well, no need to duplicate, just need to “cut” an object into pieces). I can select the vertices I need, but I cannot find a method for “separate”. Anybody can help me ?

Edit mode in the vertices menu.