Tips on Importing STL Files for perfectly sized components

I’m about to start a very large project that is comprised of multiple stacked layers of 3/4" tall elements. Each element has been defined by a design company and delivered to me in a 3D STL file (there are about 80 of them). My goal is to cut each layer and assemble the total project out of those layers. They therefore need to be cut to the exact dimensions intended when the STLs were created.

Unfortunately for me, my shop is undergoing a prolonged renovation and I don’t have access to my CNC to do the trial and error that I would need to do. The customer is waiting, so, as soon as the shop is back up time will be of the essence, and I won’t want to spend a lot of time experimenting. I want to start back up in full force and complete the job as fast as possible.

So the favor is that I’m hoping for someone with experience to shortcut my learning curve and provide specific directions - rather than a lead on experimentation…if possible.

Specifically, What are the correct settings for the Height and XY Scale (and any other pertinent parameters) in order to bring this STL file in so that it represents a 3/4" tall element, with xy dimensions as specified within the STL file?
1.A.stl (131.3 KB)

Much appreciated.

Thanks,

  • Gary

This depends on what the actual dimensions of the STL are.

When I open it in Microsoft’s 3D Builder:

I believe choosing units results in different sizes — accepting CM I get:

Assuming that is correct we import the file into Carbide Create Pro at 1.0 scale for XY and set to 0.75" high and get:

which doesn’t seem right.

1 Like

If all the elements are indeed, 3/4" high, and they are all done to scale, then you use a height of 0.750" and a scale of 25.4 (assuming inch file). Or a height of 19.05 & scale of 1.0 if metric.

STL files are unitless, and the numbers only depend on the units chosen when creating the STL file.
CC assumes they are all metric, and imports them that way.

I’m guessing your sample isn’t supposed to be 1/2" long, rather about 12" long, so I presume it was created in inch, but being imported in metric, therefor use a scale of 25.4

P.S. I didn’t notice the shape on the bottom, so you’ll also want to choose “Bottom” view. :wink:

1 Like

If we import this in cm and write it out again we get:

0.75 inches should equal 19.05mm, so we try again with the file imported from and saved out of 3D Builder:

which seems more reasonable except we presumably want the bottom:

Checking the dimensions of the auto-traced outline we get:

which should work as a check.

but maybe it should have been scaled along XY?

which instead yields:

Attached as a v7 file:

1.A_cm_0.75inHigh_scaled_1.905.c2d (3.0 MB)

1 Like

I’ll check with the designer as to the actual length/width of that STL and what units she used to create it. I’ll be back.

Thanks a lot for jumping in.

STLs are based on the storystick method. IE. Start at A, go one unit, turn go 3 times the length of A, and so on.

@Tod1d @WillAdams
Here are the measurements:
The STL was created in Inches and should measure:
image
by 3/4" tall

I get slightly larger at 25.4 scale. 11.997 x 10.848. But that is measuring the outline vector it draws around the object when importing.

It imports into NX at 10.081 x 11.149, so right on. (also at 2" high)

1 Like

Tod, Not sure what that means sorry…What is NX and how is 2" vs. 3/4" right on???

NX is the other CAD/CAM software I use. I can import & examine the STL data. The model in the STL file is 10.081 x 11.149 x 2.0. You are scaling it to 0.75 when you import it to CC.

I just tried it in CC again, and noticed that when I changed to Bottom view, it also changed the scale.
I set it back to 25.4, and it all looks good.

1 Like

except that it’s supposed to be 3/4" tall

This is how it imported. Again, the height is irrelevant since you control the height when you import it.

image

I’m really sorry to be so thick. I don’t understand this. The resulting object is going to get cut from 3/4" thick stock. But you’re saying that the STL is importing at 2". When you say it’s irrelevant, I don’t get what that means - does the object get truncated at 3/4" or does it scale the dimensions to fit 3/4"?

It seems that when you import an STL into CC Pro, the size of the canvas matters. It’s sizing the object to the width of the canvas no matter what I say. That’s not what I’m trying to accomplish.

Am I supposed to draw a bounding rectangle or something? If so, how do I determine the size of it?

You have to draw geometry for the import — size/shape of it doesn’t matter — the object will be centered on it.

When you import the STL there are a couple of controls:

you’ll want to pick bottom if you’re concerned about the bottom shape

Height:

This will determine the height to which the STL will be scaled to along the Z-axis

XY scale:

this will determine the XY size.

Given the desired dimensions of:

10.0813 in x 11.1486 in

if we import it at an XY scale of 1.0 we get:

Selecting the auto-traced outline we get a dimension of

0.439 x 0.397 inches

which we need to scale up.

10.0813 / 0.439 == 22.9642369

So if we instead import at:

the auto-traced outline is:

which is w/in 5 hundredths of 1 percent so hopefully close enough.

@WillAdams You are the king. this is the kind of answer I needed. I get it. I hope the XY Scaling is going to be consistent for all 80 STLs, I’d hate to have to try to calculate that for each - particularly since I don’t know the actual dimensions for each layer and would need to get that from the designer.

Thanks for this. I’ll give it a try and hopefully get the same results.

  • Gary

I do not get the same results. Maybe I’m doing something wrong:

I import using Bottom, .75 height, 22.964 XY
image
and press APPLY
The result fills my rectangle and resets the XY Size to whatever it wanted to:


So then I reapplied the 22.964 and pressed apply again:

Now it has rebounded it. But when I measure it:

My results are not what yours are:
image

Can you see why?

I must not be explaining it well. I do that sometimes. :smiley:
The model in the STL file is 2" thick. This is OK, because you are importing all your models at 3/4", and CC will scale the thickness to what you want. It doesn’t chop it off, it scales it down.

In the STL file, the model is the size you want (within 0.002"), so we know that’s good.
The file was saved in inches, so it has inch values. But CC imports it as metric, it doesn’t give us a choice. So the scale should be 25.4. I tested this & it works.

Ah, it happened to me too. I set everything at once, and it changes the scale back to fit the workpiece.
(it wants to scale to the workpiece, or a vector if selected.)

Set everything like this & hit Apply

image

Notice the scale change. Now change it back to 25.4 and Apply again. This time it stays, so you can select “Done”.

It still comes in a few thousandths undersize if you measure the vector. I tried using a scale of 25.41 and it’s closer. ??? Could just be the algorithm that traces the STL & creates the vector.

That’s exactly what I got?

YES!!! It’s the 25.4 vs. 22.9 that did the trick. OK. 25.4 is the magic number. Whew!

OK…hopefully, all of their other designs will use that same number - which, since it’s a mm vs. in thing, makes sense will be the same.

@Tod1d @WillAdams @Bee Thank you all.

Marking it resolved.

1 Like

@WillAdams Hey Will, could you please help me with this?

This file:
1.a.stl (14.8 KB)
Imports (with the settings we discussed above), like this:


However, the client says the import should look like this:
Screenshot 2023-11-01 091510

Mine has a ramp to it - hers is flat. The outer edge is beveled, the inner edge is plumb…but from the side, hers is a consistent height.

Can you tell what is causing this to happen?

Thanks,

  • Gary