The base material will always be stored but not exported if not assigned. For edge selection I use ninja uv and you can store edges in an array. Just my solution but ninja uv costs money. I feel your pain since I have used c4d for all of my modeling for 4 years now. The uv tools are awful.