MaFu Posted August 22 Share Posted August 22 Hello I use Affinity Designer, among other things, to create 2D templates for my CNC milling machine. Unfortunately, it seems that no units of measurement are written to the SVG during export. When importing into my CAM program, the vectors have different dimensions and I have to rescale them. If I create the SVG with InkScape, the dimensions are correct. I am working with version 2.5.3 under Windows. I have attached two files, created with Designer and InkScape. The frame around the text should have a size of 100 x 35 mm. Welcome_Affinity.svg Welcome_Inkscape.svg Quote Link to comment Share on other sites More sharing options...
firstdefence Posted August 22 Share Posted August 22 When exporting the SVG uncheck the Set View Box option. Quote iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9 (Please refrain from licking the screen while using this forum) Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions Link to comment Share on other sites More sharing options...
MaFu Posted August 22 Author Share Posted August 22 This has made a difference, but unfortunately the result is no better. If the SVG was previously larger (125x44mm instead of 100x35mm), it is now smaller (71x25mm). Quote Link to comment Share on other sites More sharing options...
firstdefence Posted August 22 Share Posted August 22 which cam software are you using? Quote iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9 (Please refrain from licking the screen while using this forum) Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions Link to comment Share on other sites More sharing options...
MaFu Posted August 22 Author Share Posted August 22 DeskProto. And as I said: if I create the SVG with InkScape, the size fits. Quote Link to comment Share on other sites More sharing options...
MaFu Posted August 22 Author Share Posted August 22 Here ist the SVG with "Set View Box" option unchecked. Welcome_Affinity_2.svg Quote Link to comment Share on other sites More sharing options...
firstdefence Posted August 22 Share Posted August 22 The only way I've gotten close to adding a vector file (SVG) to a very close approximation of the specified size is to use a DPI of 101, this is slightly undersized 102 will be slightly oversized. Below are the settings I used to export to SVG. Note: I just used the ISO plain G-codes -mm Machine option. Quote iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9 (Please refrain from licking the screen while using this forum) Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions Link to comment Share on other sites More sharing options...
MaFu Posted August 23 Author Share Posted August 23 @firstdefence Thanks, that points me in the right direction. If I set the DPI to 101.6 in Affinity Designer, my example SVG has exactly the correct dimensions of 100 x 35 mm when imported into DeskProto. Since only whole values can be used for DPI when exporting in Designer, I have set the DPI value in the document settings. I'm happy with that for now. However, I would of course prefer a correct export regardless of the DPI settings. Quote Link to comment Share on other sites More sharing options...
firstdefence Posted August 23 Share Posted August 23 11 minutes ago, MaFu said: @firstdefence Thanks, that points me in the right direction. If I set the DPI to 101.6 in Affinity Designer, my example SVG has exactly the correct dimensions of 100 x 35 mm when imported into DeskProto. Since only whole values can be used for DPI when exporting in Designer, I have set the DPI value in the document settings. I'm happy with that for now. However, I would of course prefer a correct export regardless of the DPI settings. That's great news, but I agree it's odd that you need to edit the DPI to get the correct size, maybe somebody with more knowledge about SVG code can take a look and work out why a DPI adjustment is necessary in Affinity. Quote iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9 (Please refrain from licking the screen while using this forum) Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions Link to comment Share on other sites More sharing options...
MaFu Posted August 23 Author Share Posted August 23 I used the DPI value because I found this text in the DeskProto help: When the size in SVG file is only in pixels (no real life dimensions in the file) DeskProto assumes 4 pixels per mm (101.6 dpi), as that comes close to most screen resolutions. walt.farrell 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.