• May 28, 2017, 08:46:09 AM
• Welcome, Guest. Please login or register.
Did you miss your activation email?

Recent Posts

Pages: [1] 2 3 ... 10
Help Using Inkscape / Re: Worldmap SVG - Path data
« Last post by brynn on May 27, 2017, 01:53:33 PM »
Just re-reading your message.  You can get different colors for the countries without using CSS.  But if you want it interactive, like for example, changing color on mouseover, then you need CSS or JS or something else.
Help Using Inkscape / Re: Worldmap SVG - Path data
« Last post by brynn on May 27, 2017, 01:38:39 PM »
Welcome to the forum!

It makes sense up to a point.  And after that, editing the SVG in a text editor, and using CSS, is over my head.  I understand the concept, and have been toying with trying it myself someday.  But never having done it, I couldn't offer many suggestions or warn about pitfalls.

But I can probably give you the next few steps.  Unfortunately, being unfamiliar with XML in a deep way, I'm not sure how the file is made.  In your screenshot, it looks like all the paths are subpaths of one huge compound path.  However, I'm pretty sure <g> means Group.  So possibly you have ungrouped everything, to be able to show all the paths?  Or maybe you entered the group?

If you can provide the SVG file, I can tell you exactly what to do.  If not, I'll explain about both situations (although might be more confusing for you).

I notice there's no boundary between US and Canada (including Alaska).  Just fyi in case you want to look for a different map?
Help Using Inkscape / Worldmap SVG - Path data
« Last post by Dubey on May 27, 2017, 05:18:43 AM »
Hello everyone

I have come here with a lot of hope so would really be grateful if anyone could help me out. I am very new to Inkscape and SVG’s as well in fact but looking to get some information for getting a task done.

So basically I have a worldmap svg that has borders of different countries. When I edit that svg using a text editor (or the XML editor in Inkscape), I can see a “<g><path d="M 680.05 528.24C 680.05 527.48 681.35 526 ..</g></path>” inside it. I believe this is the path data that displays all the borders. On using the path tool in Inkscape and clicking on the map, I can see the full path showing (see screenshot attached).
Screen Shot 2017-05-27 at 11.42.47.png
*Screen Shot 2017-05-27 at 11.42.47.png
(315.65 kB . 1796x1020)
(viewed 10 times)

All I am looking to do is get path data (“<g><path d="M ..</g></path>”) only for a selected country within this map, so I could highlight it with a different color (with the help of CSS) and use it on the web.

Apologies if it doesn’t make a lot of sense but please let me know if I need to provide any more information. Once again, any help will be very much appreciated.

Thanks a lot.
Welcome to the forum!

It sounds like you are going to extraordinary efforts!  Unfortunately, your explanation is a bit too vague for us to be able to offer specific suggestions.  But no worries, we'll get there  :)

Let's start from the beginning.  Can you share the SVG file that you are sending to the plotter?  (You can either attach it to your message, or upload it somewhere and give us the link.)  Once we can see that, we will have a better idea what the problem is.

Also, please tell us your Inkscape version and operating system.  And I would echo Heather, and ask what format you need to send to the plotter.
Good luck!

I hope you will make some progress  :)
What steps are you using to create the files?  Also, what file types does your plotter program accept?
We have just started using Inkscape to create images and are having problems exporting the images to the program for the plotter.  First, when we export the images, they are not vectorized when it gets back to the plotter program, so we have to rasterize it, then vectorize it, and then it showing extremely pixilated, even though it looks good in Inkscape.   We thought if it was in jpg format it would help this, so we downloaded an extension and Image Magick BUT, we don't understand how to complete the process through Image Magick.  Any help or guidance basically on a kindergarten level would be appreciated!  Thank you!
I will use your suggestions, they work.
I have successfully created and run this on my cnc, I just can't seem to duplicate the code. 

On a brighter side. I have been offered funding to take my project to the next level. I am talking with friends that can create the gcode on solid works for all the turbine parts. This will take away my frustration for a time while i work out my short comings with inkskape/cnc.  :b1: :hh:

Thank you Brynn, for your help and guidance, it is very appreciated.
I did eliminate all my .svg and .dfx files and start from scratch with a clean inkscape install.  :ur:
Well, I'm not sure what to say.  I don't understand #1, about the offset paths not matching the drawing.  For anything with sharp corners, the offset path will never match.  That's because Inkscape's Offset paths make sharp corners rounded.  That's another good reason not to use Inkscape offsets for the cutting path.

For a simple circle, the offset should work fine.  But anything with sharp corners, it probably won't match.   That's why I used that blob shape for testing, earlier, because it has no sharp corners.

Not sure what you mean about the offset being a simplified path.  Usually offsets add more unnecessary nodes, and are not known for being simplified.  (Well technically, it's probably the Object to Path which adds the extra nodes.  But either way the offset paths have extra nodes.)

When you make the offsets, do you remember to use Path menu > Object to Path, before you send to the gcode extension?  If you don't use Object to Path, I'm not sure if the extension will recognize it.  Maybe that's why it looks like a hand drawn circle?

Instead of using offset paths for the cutting path, could you just draw the original object a little bit larger?

Oh!  If you're determined to make the cutting path larger than the original path, here's another way to do it, which doesn't use Offsets at all.  First, duplicate the original path.  Make the stroke wider, to where the outer edge of the stroke is where you want to cut.  Then use Path menu > Stroke to Path.  After that, you'd have to delete the inner path (which is created by stroke to path command).  Then the outer path remains as your cutting path. 

For #2, about the gcode being microscopic, I would look at the zoom level in Inkscape.  If you're drawing while the canvas is at even a moderate zoom, then whatever you draw is much smaller than you planned.  Make sure you're always working at 100% zoom.  Or at least check the zoom before you send to the gcode extension.

Or another thing to check, if you're using Inkscape version 0.92 or higher, and you're opening a file you made with an older version, is the DPI.  If you're opening an old file with 0.92 or higher, the drawing will need to be scaled.  The native resolution of Inkscape changed in 0.92.
Brynn, I have been able to generate Gcode successfully with a few issues.
1. When I duplicate the path it looks good.
When I preform the dynamic off set for each individual piece, 3 in and 1 out.
The offset lines are not a duplicate of the path but a much more simplified path that does not match the drawing. This has to be a setting I am missing in inkscape.
2. when I load gcode  to Mach3, the image is microscopic. This I'm sure it is a mm-in-px conflict somewhere that I created.

I am working on this slowly.
Now that I can generate the Gcode again, thank you Brynn, I am working out the settings issues and conflicts to make the shapes work correctly.
Path to gcode looks good here.
start to set path to gcode.JPG
*start to set path to gcode.JPG
(190.39 kB . 1280x1024)
(viewed 11 times)

Gcode cut path looks like a hand drawn pencil line.
9 in rotor path to gcode irregular.jpg
*9 in rotor path to gcode irregular.jpg
(259.64 kB . 1280x1024)
(viewed 11 times)

Pages: [1] 2 3 ... 10