SVG file Import (importing)

SVG file Import (importing)

Postby ken » Wed Oct 15, 2008 8:08 pm

Script question.
I have been using Simon Beard’s, FlightofIdeas.RB to make SVG files out of SketchUp’s faces. This script works well in to turning faces into SVG files. I then use MS Visio to open the SVG files, and export to a DWG file. I do this to make ACAD drawing from my work.

I know that Sketchup can export to ACAD, but if the faces are not absolutely parallel to a plane, they will have the wrong dimensions. The FlightofIdeas.rb allows me to export the multiple faces without aligning all the faces to the same plane.
However, I found this script, SVG.rb that should import SVG files into SketchUp. However, I get the following attached error code.
I have looked for the missing files, however, I have been unable to locate this script.
Any help would be appreciated.
Thanks in advance
Ken
2
Fight like your the third monkey on Noah's Ark gangway.
User avatar
ken 
Premium Member
Premium Member
 

Re: SVG file Import

Postby Jim » Wed Oct 15, 2008 10:30 pm

Ken, I'll try to put rexml and svg.rb plugin together in a package for you. Stay tuned...
0
Hi

Jim 
Global Moderator
 

Re: SVG file Import

Postby ken » Thu Oct 16, 2008 2:38 pm

Jim wrote:Ken, I'll try to put rexml and svg.rb plugin together in a package for you. Stay tuned...


Thank you. I am not even sure what all I was looking for and what all I would need.

What I wanted to do is to be able to bring back into sketchup the exported SVG files, so I could re-export the drawing into DWG files, without have to go through Visio.



Ken
0
Fight like your the third monkey on Noah's Ark gangway.
User avatar
ken 
Premium Member
Premium Member
 

Re: SVG file Import

Postby Jim » Thu Oct 16, 2008 8:52 pm

I have not bee able to get an svg file imported. I think I have the setup right - all the files in the right place. I am able to start the import, an SVG Layer is created, but no geometry - only a lot of errors. I'm not sure at this point if it is the svg.rb file, or the rexml library that's generating the errors. I'm still trying as time permits.

I've attached what I have so far.

attachment removed due to conflict with set.rb
0
Hi

Jim 
Global Moderator
 

Re: SVG file Import

Postby ken » Fri Oct 17, 2008 12:54 am

Jim

Thanks for the help. I am on my way home after 6 weeks in LA. Will be offline for a couple of days.

Thanks again for you help

Ken
0
Fight like your the third monkey on Noah's Ark gangway.
User avatar
ken 
Premium Member
Premium Member
 

Re: SVG file Import

Postby xavier9 » Fri Oct 17, 2008 8:08 am

Hello, I'm french, new here and my english is bad...

I've seen that bezier.rb is missing in the zip file.
I've found it on the Didier Bur's site.
I could open just a few svg files, but the others
can be converted to SIMPLE svg files with Inkscape.
It works for me.

Xavier
0

xavier9 
 

Re: SVG file Import

Postby Jim » Fri Oct 17, 2008 10:17 am

xavier9 wrote:Hello, I'm french, new here and my english is bad...

I've seen that bezier.rb is missing in the zip file.
I've found it on the Didier Bur's site.
I could open just a few svg files, but the others
can be converted to SIMPLE svg files with Inkscape.
It works for me.

Xavier


Yes, I forgot to include bezier.rb in the .zip file, I have added it to the .zip. I do have it in my plugins folder. Can you post an example svg file that you were successful in importing?
0
Hi

Jim 
Global Moderator
 

Re: SVG file Import

Postby xavier9 » Fri Oct 17, 2008 10:38 am

This one is importable

Xavier
0

xavier9 
 

Re: SVG file Import

Postby xavier9 » Fri Oct 17, 2008 11:00 am

Now, a not importable svg opened with Inkscape and saved as "simple svg"

It rocks!

Xavier
0

xavier9 
 

Re: SVG file Import

Postby xavier9 » Fri Oct 17, 2008 2:06 pm

Hm...

"Simple svg" is a french translation for "Plain svg"

So, in Inkscape, choose "Save as Plain svg" to have a file you can open in SU.

Xavier
0

xavier9 
 

Re: SVG file Import

Postby Jim » Fri Oct 17, 2008 9:05 pm

Ah yes, it now works. I have Inskscape installed, but I missed the "Save as Plain SVG" Option.

Thank you, Xavier.
0
Hi

Jim 
Global Moderator
 

Re: SVG file Import

Postby Eulgrand » Fri May 22, 2009 6:28 pm

Has anyone experienced problems with the sandbox tool after installing SVG import ? I did : no more smoove...
0

Eulgrand 
 

Re: SVG file Import

Postby CadFather » Fri May 22, 2009 7:19 pm

yes the two don't work together
0
User avatar
CadFather 
PluginStore Author
PluginStore Author
 

Re: SVG file Import

Postby Eulgrand » Fri May 22, 2009 7:24 pm

Thanks a lot CadFather, I'll deal with it ;)
0

Eulgrand 
 

Re: SVG file Import

Postby maxim_ » Mon Sep 27, 2010 8:58 pm

Hello. I am a newbie and I speak Russian. Translation of Google. I have a problem. When you import an SVG, I receive an error:

Error (in script) while reading “D:\Libelle_3-view-SIMPLE.svg”:
Exception parsing

How to solve this problem?
Regards Max.
0

maxim_ 
 

Re: SVG file Import (importing)

Postby danbig » Fri Oct 29, 2010 11:38 pm

Hi -

Has anyone used this scrip in SU8 yet?

I get the following error when I try to import:
Capture.PNG
0

danbig 
 

Re: SVG file Import (importing)

Postby Catalyst » Thu May 05, 2011 2:17 am

Hi danbig,
You need to open your SVG file with inkscape.

1. Go into Inskcape's preferences
2. Under "Tools" select "SVG output"
3. Under "Path data" - uncheck "Allow relative coordinates"
4. Right below that - check "Force repeat commands"

Be sure to save the new preferences by hitting the little triangle-in-a-box button in the top right corner of the preferences window.

Once you do that, you can save Plain SVG files and import them successfully into Sketchup for further manipulation.
0

Catalyst 
 

Re: SVG file Import (importing)

Postby derei » Sun Feb 05, 2012 8:54 pm

Where I can find this SVG importer ? Is it possible to be posted here, on SketchUcation?
Thank you.
0
DESIGNER AND ARTIST DEREI.UK
User avatar
derei 
 

Re: SVG file Import (importing)

Postby TIG » Sun Feb 05, 2012 9:49 pm

0
TIG
User avatar
TIG 
Global Moderator
 

Re: SVG file Import (importing)

Postby Majenta » Tue Jan 13, 2015 2:37 am

Catalyst wrote:Hi danbig,
You need to open your SVG file with inkscape.

1. Go into Inskcape's preferences
2. Under "Tools" select "SVG output"
3. Under "Path data" - uncheck "Allow relative coordinates"
4. Right below that - check "Force repeat commands"

Be sure to save the new preferences by hitting the little triangle-in-a-box button in the top right corner of the preferences window.

Once you do that, you can save Plain SVG files and import them successfully into Sketchup for further manipulation.




I HAVE NOT BEEN ABLE TO SUCCESSFULLY IMPORT A PLAIN SVG FILE INTO SKETCHUP MAKE 2014 USING THIS METHOD. IS THERE ANY ADDITIONAL STEPS I NEED? GOAL IS TO INPUT A SVG FILE (THE WORDS "PEACE" "ON" AND 'EARTH" WHICH HAVE BEEN TRACED AND WELDED TOGETHER IN TO THREE INDIVIDUAL SVGS.) OF A WELDED WORD INTO SKETCHUP AND EXTRUDE IT TO MAKE A 3D 'BOX' ABOUT 2" THICK.
0

Majenta 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Developers' Forum

Who is online

Users browsing this forum: anuz1945, marsmartian and 6 guests

Visit our sponsors: