Customizer is flipping my model upside down

I have a problem with an OpenSCAD script I posted on MakerWord. When the user is finished with the customization and downloads the model, if they pick 3MF, the model ends up being flipped upside down in the 3MF file but if they download just the STL file, the model is in the correct orientation. Has anyone run across this before?

It does that with some of mine if they have a flat surface. So I assumed it was trying to guess at the preferred print orientation.

If text is raised, it doesn’t. If text is flush it does reorient. Its buggy too though…you have to split into parts to color, but when you do that the all the parts un-reorient themselves (except the base part) which screws everything up.

My model has a very flat top and bottom surface. Maybe if I add a bump of some sort to the top, it’ll orient itself correctly. Thanks. I’ll have to experiment with that.

That was the problem. I solved it by making the center prism, in my grid, 0.10 mm taller than the rest. That was enough to convince it not to place it upside down. Flexigrid by jetpad - MakerWorld

That is an interesting and weird problem plus a solution.

I was aware the system MW created tried to manipulate the model to make it easier for the user. I wasn’t aware it got confused and flipped things over.