<p>OK, Problem solved :</p>
<p>It appears that both the viewBox attribute in the &lt;SVG ...&gt; tag and  and  tags are unsupported by openScad. So I solved the problem by just removing both the viewBox attribute in the SVG tag and defs tags as mentioned  with a text editor, and then I cleaned the file with inkscape.</p>

CC BY-SA 4.0
2024-09-10T20:54:52.097Z
2024-09-10T20:54:52.097Z
Camion
<p>Importing vector data from another source can be very useful for 3D printing. e.g. import some writings to engrave a surface, etc.</p>
<p>In this case, I've been trying to import a David Smith's tiling background image in openSCAD, but it failed miserably and I have no idea about why it fails.</p>
<p>Here is what I did:</p>
<ol>
<li>I went to <a href="https://cs.uwaterloo.ca/%7Ecsk/hat/app.html" rel="nofollow noreferrer">Craig S. Kaplan's page about David Smith's tiling</a>.</li>
</ol>
<p><a href="https://i.sstatic.net/FyyLG3PV.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/FyyLG3PV.png" alt="enter image description here" /></a></p>
<ol start="2">
<li><p>Then I clicked on the [Save SVG] button, and saved the file on my computer.</p>
</li>
<li><p>Then I tried to import it in openSCAD with the following code:</p>
</li>
</ol>
<pre><code>    resize([200, 100, 10]) 
        linear_extrude(10)
            import(&quot;C:/Users/phil/Downloads/David Smith Single Tile.svg&quot;);
</code></pre>
<p>and... Nothing happens.</p>
<ol start="4">
<li>Then, I tried to render instead of preview, and I got in the log the following notice:</li>
</ol>
<blockquote>
<p>&quot;WARNING: No top level geometry to render&quot;</p>
</blockquote>
<p>I have no idea of the specificities of SVG files nor what could happen or how to address this problem. Please help...</p>

CC BY-SA 4.0
2024-09-03T14:07:59.900Z
How does this relate to 3D printing?
agarza
CC BY-SA 4.0
2024-09-03T16:47:28.400Z
Of course, @Velvet : When you save a file, you can change this name
Camion
CC BY-SA 4.0
2024-09-03T16:52:52.153Z
What do you think I will be doing with this tile, @Agarza ? But you are right : I forgot that last time I asked an openSCAD question, I asked it on Stackoverflow and not here
Camion
CC BY-SA 4.0
2024-09-03T17:54:28.740Z
FWIW, I managed to import this SVG into Fusion, so the model seems to be fine: https://i.sstatic.net/6H09ySpB.png. But you have to take note that the tile was imported far from the origin (https://i.sstatic.net/VgC4jnth.png). Maybe that could be the issue... (e.g. restricted drawing environment?)
Velvet
CC BY-SA 4.0
2024-09-04T10:10:19.707Z
I had no doubt on the fact that the SVG file was OK. I suspect it has some characteristics that make it not understandable by OpenSCAD, but I have no idea about what it could be and how to address the problem. By the way, I took the simplest example I could find, but in fact, what I would like to import, is the level twice above, when one have generated super tiles, but I wanted to start with an easy example.
Camion
CC BY-SA 4.0
2024-09-04T14:12:37.903Z
Your question has been flagged to be closed for not being [on-topic](https://3dprinting.stackexchange.com/help/on-topic) (not by me). I suggest you [edit] the question so this does not happen.
agarza
CC BY-SA 4.0
2024-09-06T09:15:08.980Z
You might open it in Blender do your editing in blender and export as STL
Or dont edit in blender and directly export to STL or OBJ or some format your drawing tool requires. SVG's can be different there are a few version standards of them, from what i've noted is that blender is okay with opening them.
Peter
CC BY-SA 4.0
2024-09-09T18:04:54.787Z
Even though it might seem obvious, as previously requested, please [edit] and specify that you will be printing the file - 
 then it can be voted to be left open (it is one vote away from being closed). Also, please keep all additional info in the question, rather than in the comments. Thanks.
Greenonline
CC BY-SA 4.0
2024-09-10T21:04:29.947Z
Frankly, 3D modeling is a major side of 3D printing and I don't know of a better space than this one to ask for this question. Specifying that I'm going to print the project is not relevant to understand the question and will just add noise to it. If people want to suppress knowledge to satisfy their ego, it just shows who they are and I'm not even surprised. Feel free to do it. I got the answer I needed.
Camion
CC BY-SA 4.0
2024-09-13T21:08:19.573Z
Many 3D models are ***not*** intended to be printed, in fact I would hazard a guess that only a small percentage of 3D designs are intended to be printed. Please understand that if we don't request that OP's specify that the object is for printing, then we will open up ourselves to many *many* 3D design questions. We have had this issue before, and have managed to contain it. It is nothing about egos, it is simply a question of what was deemed as [on-topic] during the beta stage. We set a (very) low bar of just requiring a simple statement in the question such as "I intend to print the model".
Greenonline
CC BY-SA 4.0
2024-09-13T21:12:41.560Z
... it isn't much to ask for, really, and doesn't really contribute to "noise". Nevertheless, thank you for posting a solution which will hopefully help others. You might find this useful, [Where can questions that are purely about 3D modelling, or CAD, software be asked?](https://3dprinting.meta.stackexchange.com/q/558/4762). There's also a meta question regarding why (purely) 3D design questions are off-topic, but I can't find the link at the moment.
Greenonline
CC BY-SA 4.0
2024-09-14T00:16:33.617Z
I have read your link with attention, and I believe you have problem with defining the limit criterion. It is completely irrelevant if _I_ will print it or not. The right question should rather be : is this useful for 3D printing which is quite different. I can rephrase my post in this context.
Camion
<openscad>
Why do I fail to import the SVG file from this site?
Camion
# Why do I fail to import the SVG file from this site?

(Asked by: username_0 on 2024-09-03)

Importing vector data from another source can be very useful for 3D printing. e.g. import some writings to engrave a surface, etc.
In this case, I've been trying to import a David Smith's tiling background image in openSCAD, but it failed miserably and I have no idea about why it fails.
Here is what I did:

I went to Craig S. Kaplan's page about David Smith's tiling.



Then I clicked on the [Save SVG] button, and saved the file on my computer.

Then I tried to import it in openSCAD with the following code:


    resize([200, 100, 10]) 
        linear_extrude(10)
            import("C:/Users/phil/Downloads/David Smith Single Tile.svg");

and... Nothing happens.

Then, I tried to render instead of preview, and I got in the log the following notice:


"WARNING: No top level geometry to render"

I have no idea of the specificities of SVG files nor what could happen or how to address this problem. Please help...

**Tags:** openscad
> **Comments:**
> **username_1**: How does this relate to 3D printing?  
> **username_0**: Of course, @Velvet : When you save a file, you can change this name  
> **username_0**: What do you think I will be doing with this tile, @Agarza ? But you are right : I forgot that last time I asked an openSCAD question, I asked it on Stackoverflow and not here  
> **username_2**: FWIW, I managed to import this SVG into Fusion, so the model seems to be fine: https://i.sstatic.net/6H09ySpB.png. But you have to take note that the tile was imported far from the origin (https://i.sstatic.net/VgC4jnth.png). Maybe that could be the issue... (e.g. restricted drawing environment?)  
> **username_0**: I had no doubt on the fact that the SVG file was OK. I suspect it has some characteristics that make it not understandable by OpenSCAD, but I have no idea about what it could be and how to address the problem. By the way, I took the simplest example I could find, but in fact, what I would like to import, is the level twice above, when one have generated super tiles, but I wanted to start with an easy example.  
> **username_1**: Your question has been flagged to be closed for not being [on-topic](https://3dprinting.stackexchange.com/help/on-topic) (not by me). I suggest you [edit] the question so this does not happen.  
> **username_3**: You might open it in Blender do your editing in blender and export as STL Or dont edit in blender and directly export to STL or OBJ or some format your drawing tool requires. SVG's can be different there are a few version standards of them, from what i've noted is that blender is okay with opening them.  
> **username_4**: Even though it might seem obvious, as previously requested, please [edit] and specify that you will be printing the file -   then it can be voted to be left open (it is one vote away from being closed). Also, please keep all additional info in the question, rather than in the comments. Thanks.  
> **username_0**: Frankly, 3D modeling is a major side of 3D printing and I don't know of a better space than this one to ask for this question. Specifying that I'm going to print the project is not relevant to understand the question and will just add noise to it. If people want to suppress knowledge to satisfy their ego, it just shows who they are and I'm not even surprised. Feel free to do it. I got the answer I needed.  
> **username_4**: Many 3D models are ***not*** intended to be printed, in fact I would hazard a guess that only a small percentage of 3D designs are intended to be printed. Please understand that if we don't request that OP's specify that the object is for printing, then we will open up ourselves to many *many* 3D design questions. We have had this issue before, and have managed to contain it. It is nothing about egos, it is simply a question of what was deemed as [on-topic] during the beta stage. We set a (very) low bar of just requiring a simple statement in the question such as "I intend to print the model".  
> **username_4**: ... it isn't much to ask for, really, and doesn't really contribute to "noise". Nevertheless, thank you for posting a solution which will hopefully help others. You might find this useful, [Where can questions that are purely about 3D modelling, or CAD, software be asked?](https://3dprinting.meta.stackexchange.com/q/558/4762). There's also a meta question regarding why (purely) 3D design questions are off-topic, but I can't find the link at the moment.  
> **username_0**: I have read your link with attention, and I believe you have problem with defining the limit criterion. It is completely irrelevant if _I_ will print it or not. The right question should rather be : is this useful for 3D printing which is quite different. I can rephrase my post in this context.  

---

## 1 answers

### Answer by username_0 on 2024-09-10. Score: 1 | Accepted answer

OK, Problem solved :

It appears that both the viewBox attribute in the  tag and and tags are unsupported by openScad. So I solved the problem by just removing both the viewBox attribute in the SVG tag and defs tags as mentioned with a text editor, and then I cleaned the file with inkscape.


---

