Start a new topic

OpenSCAD size/scale issues with SVG files

 Hi,


I sometimes use OpenSCAD for simple 2D/3D construction. When exporting from OpenSCAD to SVG the size/scale of the model does not fit. Mr. Beam will render the part way too small.


This is a well-known issue with OpenSCAD. It will export unitless SVG files. On the contrary, Mr. Beam seems to expect units in mm to be specified in the SVG file.


Luckily, there is an easy fix. Load the SVG file in your favorite text editor and add the "mm" unit.

Before:

<svg width="18" height="8" viewBox="-9 -4 18 8" xmlns="http://www.w3.org/2000/svg" version="1.1">

After:

<svg width="18mm" height="8mm" viewBox="-9 -4 18 8" xmlns="http://www.w3.org/2000/svg" version="1.1">

 Look for the "mm" behind the digits.


Finally, save the design and upload it to Mr. Beam :)


Cheers


Daniel

 

1 Comment

Many thanks for the great tip!

Login or Signup to post a comment