Making new design always failed

How do you create new desing with 3D software. Whenever I create something like a housing for some PCB or something else I never manage to make it 100% right. After I print first failed model I repair my design in 3D software and than test if all fits if not repair design again. So sometimes I print and repair design 2 times sometimes 3 times.

HOW do you create design so all fits first time when you create design and print it.
I just design a box for Arduino and again nothing fits in that box

First model the thing(s) that go in the housing, not the case itself. Measure carefully with accurate measuring devices. For example, digital calipers, which are generally more accurate than 3d printers.

Then build the design for the housing around that model. Leave some margin for error, variations between parts, imprecise printing, etc.

The more accurate your model of the thing to be encased, the more likely you are to succeed on the first try printing.

Where you have ambiguity or uncertainty, print test pieces that use just enough plastic to gauge whether some aspect in particular will fit, instead of printing the whole thing. Yes that creates some intentional waste, but in the end it will result in less total waste from reprinting the entire thing.

thank you for advice. I always measure with caliper, but when making housing for some PCBs it always get wrong. Like this one latest I printed.

I make a photograph of the PCB, cut everything around it and stretch it on a rectangle in the 3d program. The only thing you need to measure are the outside dimensions of the PCB. After that, the location of holes and connectors are accurately visible on the rectangle in the 3D drawing.

I don’t do a ton of 3 d printing but I look for things already done and shared by people. You can take an STL and reconvert that to a 3d file and manipulate it.

ARDUINOUNOCASE models for 3D printer | Printables.com

If I’m seeing this right, it looks like maybe you’re mixing up metric and imperial measurements.

What CAD software are you using?

no thats not possible to mix metric and imperial. I use fusion 360.

which tool do you use for that?

I will try this with photo

Ok. But I meant designing in one and exporting or importing in a different one.

You also might need a perspective correction in a 2d image processing program like Gimp.
Or use a tripod to get the sides perfectly parallel.

I use Rhino3D. It has a MeshtoNurbs command. I download the STL, change the mesh to nurbs, and then delete the mesh. This gives you something to work on.