OpenSCAD Measurement tool

OpenSCAD Measurement tool

thingiverse

I wanted a way to create parts diagrams with measurements directly from OpenSCAD. I suspect others have done this already, but I couldn't find anything. So I created a library. Just add measurements based on your calculations and parameters, set your view orientation, and export as an image (details in the instructions section) I included an example Servo scad that uses the measurements module to create a parts diagram. As an example, I overly use it to show all orientations. Note, this uses write.scad (thing 16193). You may want to download the latest version directly from thingiverse. I just found this link on the openscad website. It has more features than my library, but does seem to limit to top down view. Not that you can't simply move your object to allow for it's use. Anyway, if you like my library, you would probably like this one too. http://www.cannymachines.com/entries/9/openscad_dimensioned_drawings Instructions Copy files into the same directory as your .scad file Note, this uses write.scad (thing 16193). You may want to download the latest version directly from thingiverse. add use to your file add call to measurement when you want to add a measurement line set the view orientation to what your going to pass in to the measurement method (i.e. front) from the view drop down in OpenSCAD set the view to orthogonal, so everything looks flat flush the caches in OpenSCAD from the design menu Note, you only need to do this if you have rendered previously. Compile F5 (note, do not compile and render!) align the view as you want, make sure you don't mess up the orientation. If you do, re-select the one you want from the view menu select export as image from the design menu The parameters to the measurement module are :orientation = orientation of measurement line. Values {"horizontal","vertical"}view = side of object. Values {"front","left","right","back","top","bottom"} Note, this is the same view you select in OpenSCADlength = length of measurementtext = measurement name (keep short)textpos (optional, defaults to "below") = position of text above or below the line. Values {"above","below"}text_size (optional, defaults to 2) = the size of the text characters in heightline_thickness (optional, defaults to .15) = the thickness of the measurement line

Download Model from thingiverse

With this file you will be able to print OpenSCAD Measurement tool with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on OpenSCAD Measurement tool.