Hi,
I own a 3D printer with exchangable toolheads, so I can use the device as a CNC printer or laser cutter/engraver as well. For the laser cutter, I need a SVG file for the input.
I was doing this trick to make a nice front panel for my project.
As I cannot find a way to add custom layers, I decided to use two otherwise unused existing layers in the PCB layiout. So I designated the "Mechanical" layer in my design for the holes in the front panel. (The "Holes" layer has all the holes, and that is too much holes!) The "ComponentShapeLayer" was designated for the text on the front panel.
I then placed the needed holes (a square for a display, some circles for LEDs) on the "Mechanical" layer, and the needed text on the "ComponentShapeLayer" layer.
So far, so good.
Then the exports. Because the order matters, I needed three exports:
I exported only the "ComponentShapeLayer" to get the texts (which are to be engraved). I noticed I only got a file with the text parts, but without any reference to to board size! I solved this by putting some '+' signe on the outer corners of my board (Same on the mechanical layer). This gives me what I want, with one extra: There is an additional square around everything! It appears to be the ' papersize'.
I exported only the "Mechanical" layer as well (to be cut), andf this one also has the additional rectangle!
Finally I exported only the 'BoardOutline' layer (to cut my final front panel to size), and this one too has the extra rectangle, a little bit larger than the Board Outline itself.
All three resulting files have the identical rectangle around them (thanks to the "+" signs in every corner on every exported layer)
The problem of the extra rectangle (it is outside the front panel), is when the cutting starts. My 'job' has three stages:
1) Engrave the text (and the rectangle, but that is no problem here)
2) Cut the holes for the display and the LEDs. The rectangle now becomes a problem, because it cuts loose the front panel from the material. No big deal if this was the last thing drawn, but it is the first one! If it was the last thing drawn, I didn't need the third stage.
3) Cut the front panel from the material. The rectangle causes same problem as mentioned in 2)
I "solved" the problem by opening the svg-files in a text editor and deleted the rectangle definition at the start of the last line (the only one in each file). This gives me a file without the outer rectangle. The engraving and cutting now works exactly as intended. The final result (after a few attempts) is really better then I expected!
I tried to edit the svg files with LibreOffice Draw (text missing!) or Inkscape (resulting in a huge file with errors during laser engraving), but the simple text editing was the cleanes way to get what I needed.
Is there a way to avoid the generation of this extra rectangle (as the paper size or bounding box or whatever it represents?) in the exported svg? And if so: how do I do this?
Any tips and insights are greatly appreciated,
Marcel
Electron
4.2.10
Linux
EasyEDA
6.4.31