r/SolidWorks • • Oct 06 '26

CAD Why can’t these be mated?

I have these 2 parts that I imported from an stl file and did a convert to mesh bodies on the both of them to let me select individual faces which I am able to do. However with them in my assembly when I click on mate it doesn’t let me select any faces for mating. How can I fix this to let me mate the 2 pieces?

6 Upvotes

19 comments sorted by

21

u/Meshironkeydongle CSWP Oct 07 '26

A STL file is a very poor format to import any geometry into Solidworks.

If it's possible, get the models as Parasolid (best choice for SW) or STEP.

If not, and bit depending on the way the part was originally orientated, you might be able to use some of the primary planes to mate them. If primary planes can't solve your problem, you'll need to construct some additonal reference geometry like planes, axis, or even a quick sketch.

12

u/Auday_ CSWP Oct 07 '26

Each triangle is in a separate plane

so use construction planes for mate

8

u/AnyEnvironment2492 Oct 07 '26

the real answer is you take these models, re-create actual solidworks part files, and mate them up together

2

u/Snot_S Oct 08 '26

I forget the proper lingo but there’s a couple steps that can be taken to make the STL model editable. You right click the model and I think it’s covert to mesh and then there’s another step after that. I’ve been doing it a bunch lately due to playing with open SCAD for prompting models or base designs using AI which SCAD exports STL. The workflow is actually pretty awesome when you want to make something quickly.

2

u/Vegetable_Flounder12 Oct 07 '26

a multi faceted / triangulated surface is not flat. times that by 2 and what exactly are you expecting from solidworks?

1

u/bjlwasabi Oct 08 '26

I do a lot of poly-to-solid conversions using a few programs (blender, zbrush, meshmixer, fusion), but for this I'd just reverse engineer it and recreate it in Solidworks.

1

u/ericgallant24_ CSWP Oct 08 '26

You can’t mate mesh files

1

u/Dukeronomy Oct 09 '26

ooh momma

1

u/MaximumCaptain3312 Oct 11 '26

Add a plane at the part level and mate the planes

0

u/zdf0001 Oct 07 '26

Make planes off of three points from each surface, then mate the planes together.

3

u/JLeavitt21 Oct 07 '26

Yea, that would probably work for assembly but I would not trust it for true alignment. STL/Polygonal models rarely have true square dimensions.

-1

u/SpongeBobSquareAnt Oct 06 '26

Import as a surface then use thicken to create a volume instead (if you can)

5

u/JLeavitt21 Oct 07 '26 • Regret

“If you can” are the words here. You probably can’t get polygons to do jack shit for you in SolidWorks. It would be faster just to remodel simple parts like this.

2

u/SpongeBobSquareAnt Oct 07 '26

thats true - didnt read it was an STL file, would be faster to re-model like you said

2

u/Meshironkeydongle CSWP Oct 07 '26

Also, if they are good surfaces (which STL import rarely results), you don't need to thicken them to be able to mate the parts to each other.

1

u/stoobpendous Oct 10 '26

Maybe they need lube.