O2PE includes an unwrap function (Surfaces → Unwrap Structure …) which should work pretty good an simple structures.
I use it this way:
Now you should have your structure more or less correct UV-mapped, you only need to move the UV-maps, so they do not overlap.
On more complex structures, use professional modeling software which has good UV tools.