Size Issue

classic Classic list List threaded Threaded
18 messages Options
Reply | Threaded
Open this post in threaded view
|

Size Issue

Bozotclown1970
Hi,

I am new to the this and OpenScad. Although I have designed a few pieces for my 3D printer that worked great. This simple one I am try to print will not work correctly. The below code should print a small rectangle 28mm x 14mm x 3mm in size with two holes that are 9mm and 11mm in  diameter. When I print the file it produces a rectangle that is 38mm x 24mm x 12mm and the holes are 18mm and 20mm in diameter. I just can't seem to find my error. The simple code I am using is posted below.

$fn=10;
difference() {
   
      cube([28, 14, 2], center=true);
   
   translate([-8, 0, -1.5]) {
      cylinder(r=4.5, h=3);
   }
     
   translate([6.5, 0, -1.5]) {
      cylinder(r=5.5, h=3);

   }
}
Reply | Threaded
Open this post in threaded view
|

Re: Size Issue

droftarts
I can't see anything wrong with your code, or the stl it produces (checked in Netfabb), except that it's 28mm x 14mm x 2mm (which is what's written in your code). It's like 10 got added to every dimension. Can you post the stl file you produce here? Also, what version of OpenSCAD are you using? I'd suspect some slicing or printer setup problem if the stl is correct.

Ian
Reply | Threaded
Open this post in threaded view
|

Re: Size Issue

Bozotclown1970
Thank you very much for your reply. I am running the following version of OpenSCAD: "OpenSCAD version 2015.03-2".

Here is the stl file it created:

Extruder_Wire_Tube_Holder.stl


Also the G-Code created by the XYZ slicer apears to be good also:

Reply | Threaded
Open this post in threaded view
|

Re: Size Issue

MichaelAtOz
Administrator
Bozotclown1970 wrote
Thank you very much for your reply. I am running the following version of OpenSCAD: "OpenSCAD version 2015.03-2".

Here is the stl file it created:

Extruder_Wire_Tube_Holder.stl


Also the G-Code created by the XYZ slicer apears to be good also:

As droftarts said, as you coded cube([28, 14, 2], center=true); it is 2 thick.

Netfabb shows the size as:


So your printer settings are off, lookup 'calibration' in your printer doco.

But as droftarts said it does look like 10 was added everywhere, off the top of my head I can't explain where that is likely to come from...
Admin - email* me if you need anything,
or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.


The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!
Reply | Threaded
Open this post in threaded view
|

Re: Size Issue

MichaelAtOz
Administrator
"38mm x 24mm x 12mm and the holes are 18mm and 20mm in diameter"

Are you sure? Diameters 18mm + 20mm = 38mm which means the holes are as big as the rectangle is long?
Admin - email* me if you need anything,
or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.


The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!
Reply | Threaded
Open this post in threaded view
|

Re: Size Issue

Bozotclown1970
Again, the following is the whole piece of code I am trying to print! As you can see the diameter is 9mm and the other diameter is 11mm. The printer is setup to print in mm and all of my other prints are fine even the other OpenSCAD files print fine. Just having an issue with this one.  


"$fn=10;
difference() {
   
      cube([28, 14, 2], center=true);
   
   translate([-8, 0, -1.5]) {
      cylinder(r=4.5, h=3);
   }
     
   translate([6.5, 0, -1.5]) {
      cylinder(r=5.5, h=3);

   }
} "



Reply | Threaded
Open this post in threaded view
|

Re: Size Issue

nophead
This post was updated on .
Well there is nothing wrong with the STL file that OpenSCAD creates. It must be a problem with your slicer or printer. What are you using?

As Michael has said, I also can't imagine anything that adds 10 to all dimensions, especially Z.

Here is the STL viewed in NetFabb



Reply | Threaded
Open this post in threaded view
|

Re: Size Issue

Bozotclown1970
I am using XYZ davinci JR and XYZ software that I believe uses Slic3R. I am confused as other OpenSCAD projects I created work fine. They are both boxes with lids, not as simple as this one.
Reply | Threaded
Open this post in threaded view
|

Re: Size Issue

nophead
So you get an object that looks like this?



I just can't see how that can happen when the STL is correct. The outside dimensions have increased by 10 and the hole diameters have increased by 9 and now overlap?
Reply | Threaded
Open this post in threaded view
|

Re: Size Issue

Bozotclown1970
That is great. Now you are seeing the delima I am facing. Below is a picture of one of the items I printed.

Reply | Threaded
Open this post in threaded view
|

Re: Size Issue

Ronaldo
In reply to this post by nophead
The problem seems not to be in you stl or slicer or print. Calibrate your capiler!

2017-03-12 16:09 GMT-03:00 nophead <[hidden email]>:
So you get an object that looks like this?

<http://forum.openscad.org/file/n20858/holes.png>

I just can't see how that can happen when the STL is correct. The outside
dimensions have increased by 10 and the hole diameters have increased by 9
and now overlap?



--
View this message in context: http://forum.openscad.org/Size-Issue-tp20843p20858.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Size Issue

Bozotclown1970
If I don't feel really stupid right now. This is a new set of calipers and they were off by 10mm.

Really sorry guys, thank for all of the help.

Reply | Threaded
Open this post in threaded view
|

Re: Size Issue

Ronaldo
Close the jaws and press zero button before your measurements. Or change batteries.
Reply | Threaded
Open this post in threaded view
|

Re: Size Issue

ednisley
In reply to this post by Bozotclown1970
On 03/12/2017 03:55 PM, Bozotclown1970 wrote:
> the delima I am facing

Remove the object, clean the caliper's jaws, close them so they are
touching, press the yellow ZERO button, and the display will read 0.00 mm.

Measure your objects again to resolve your dilemma.

Protip: Always verify an instrument's zero before measuring anything.

--
Ed
http://softsolder.com

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
 --
Ed
softsolder.com
Reply | Threaded
Open this post in threaded view
|

Re: Size Issue

MichaelAtOz
Administrator
Calibration free...
Admin - email* me if you need anything,
or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.


The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!
Reply | Threaded
Open this post in threaded view
|

Re: Size Issue

Bozotclown1970
Very nice!

-----Original Message-----
From: Discuss [mailto:[hidden email]] On Behalf Of MichaelAtOz
Sent: Sunday, March 12, 2017 6:11 PM
To: [hidden email]
Subject: Re: [OpenSCAD] Size Issue

Calibration free...
<http://forum.openscad.org/file/n20864/calibration_free_calipers.jpg>



-----
Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”   Fight it! http://www.ourfairdeal.org/   time is running out!
--
View this message in context: http://forum.openscad.org/Size-Issue-tp20843p20864.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Size Issue

droftarts
You've got to admit that's funny. Are you more of an inches user, rather than metric? I'm just surprised you didn't look at the part, particularly the thickness, and think "that's never 12mm thick!" And then look for some other reason. Shame you didn't measure one of the other parts you had already printed and measured as being correct, I think you would have realised your mistake a lot sooner!
Reply | Threaded
Open this post in threaded view
|

Re: Size Issue

Bozotclown1970
Yea, I'm sure I'm going to hear about this for a LONNNNNNG time.  :) It is
some new metric calipers I bought just for this. I have mechanical ones I
use for inches. I don't know why I didn't think to measure something I had
already created. The only thing I can attribute it to is age.

-----Original Message-----
From: Discuss [mailto:[hidden email]] On Behalf Of
droftarts
Sent: Sunday, March 12, 2017 7:18 PM
To: [hidden email]
Subject: Re: [OpenSCAD] Size Issue

You've got to admit that's funny. Are you more of an inches user, rather
than metric? I'm just surprised you didn't look at the part, particularly
the thickness, and think "that's never 12mm thick!" And then look for some
other reason. Shame you didn't measure one of the other parts you had
already printed and measured as being correct, I think you would have
realised your mistake a lot sooner!



--
View this message in context:
http://forum.openscad.org/Size-Issue-tp20843p20866.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org