The best way that i have found to do this is to change the root part to the docking port you are going to use to attach the craft together, then pull the craft off of the port, which you can do quickly by entering the appropriate mode with the number 4 key.
Once that is done save the craft as a sub assembly.