With wires, you don't really need to measure - just clip off a length that is about what you need, but a bit longer, solder one end to your component, then lay the wire inside the enclosure and route it to its destination so you can get an idea of where to trim it, then hold that spot with your...