sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Importing SVG

    Scheduled Pinned Locked Moved Plugins
    14 Posts 8 Posters 11.0k Views 8 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      cloo
      last edited by

      Thank you TIG! Life is much easier with folks like you. 👍 .
      I`ll try to give something in my turn, too.
      Here is the plugin with all the needed scripts: svg.rb and all the scripts that it requires: rexml library, bezier.rb, forwardable.rb and set.rb

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by

        Just so you know, we've had this posted back in 2008 (but now removed)

        http://forums.sketchucation.com/viewtopic.php?f=180&t=13475

        The problem is the file set.rb uses a Set class that is in conflict with SketchUp's built-in Set class, which can cause other plugins which rely on the Set class to fail (in sometimes subtle ways that are hard to debug.)

        It may be possible to fairly easily wrap the entire plugin in a unique namespace, but I don't think anyone has tried it.

        Hi

        1 Reply Last reply Reply Quote 0
        • C Offline
          cloo
          last edited by

          Yes, I found that.
          But I think that declaring this incompatibility is much better than removing a possibility - so you don`t ban people from using a function when necessary.

          1 Reply Last reply Reply Quote 0
          • shuraS Offline
            shura
            last edited by

            Does that mean it is very likely to risk conflicts when installing svg.rb?
            I'd love to have vectors from Inkscape imported, but I don't want to mess up my plugins...
            😕

            1 Reply Last reply Reply Quote 0
            • C Offline
              cloo
              last edited by

              Svg.rb is ok, but it loads set.rb.
              Set.rb disables smoove from sandbox tools.
              That`s it.
              So I keep both svg.rb and set.rb away from plugins folder and move them back in only when needed.

              1 Reply Last reply Reply Quote 0
              • TIGT Offline
                TIG Moderator
                last edited by

                You could try this:
                'disable' set.rb by renaming it set.rb.txt
                edit the file ../Plugins/remxl/parsers/baseparser.rb
                near the start disable the require for set by prefixing the line with a #, thus
                **#**require 'set'
                You should still get the required 'Set' functions loaded by Sketchup for the svg tool AND sandbox...

                Try it this way and report back - you should then get both tools working..........

                TIG

                1 Reply Last reply Reply Quote 0
                • I Offline
                  ideas_arte
                  last edited by

                  @tig said:

                  You could try this:
                  'disable' set.rb by renaming it set.rb.txt
                  edit the file ../Plugins/remxl/parsers/baseparser.rb
                  near the start disable the require for set by prefixing the line with a #, thus
                  **#**require 'set'
                  You should still get the required 'Set' functions loaded by Sketchup for the svg tool AND sandbox...

                  Try it this way and report back - you should then get both tools working..........

                  Before you follow the instructions:
                  before

                  After TIG instructions:
                  After

                  I have no knowledge of scripts, just follow the instructions.

                  Regards to all, and I hope someone helps us.

                  1 Reply Last reply Reply Quote 0
                  • shuraS Offline
                    shura
                    last edited by

                    oh, oh, I'm a bit frightened 😉 But however, thanks for your efforts guys! Guess I'll be not diving into svg too soon, but sure remain interested...
                    cheers

                    1 Reply Last reply Reply Quote 0
                    • TIGT Offline
                      TIG Moderator
                      last edited by

                      Looks like my idea isn't working as the SUp's Set has fewer methods than set.rb's Set ... F
                      So forget what I said earlier - you can have either svg.rb [with set.rb] working OR the Sandbox-Tools [and any other tools using 'Set' methods]... But not both. You must choose.

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • dereiD Offline
                        derei
                        last edited by

                        Any fix on that in the meantime?
                        Thanks.

                        DESIGNER AND ARTIST [DEREI.UK](http://derei.uk/l)

                        1 Reply Last reply Reply Quote 0
                        • R Offline
                          rjh5945
                          last edited by

                          我想要试一下行不行

                          1 Reply Last reply Reply Quote 0
                          • FrederikF Offline
                            Frederik
                            last edited by

                            @rjh5945 said:

                            我想要试一下行不行

                            Really...
                            An English forum and you didn't even bother to use Google Translate or alike...?!?

                            Please note that this plugin dates back to 2010...
                            I don't think you're going to make it work with newer versions of SketchUp...

                            Cheers
                            Kim Frederik

                            1 Reply Last reply Reply Quote 0
                            • 1 / 1
                            • First post
                              Last post
                            Buy SketchPlus
                            Buy SUbD
                            Buy WrapR
                            Buy eBook
                            Buy Modelur
                            Buy Vertex Tools
                            Buy SketchCuisine
                            Buy FormFonts

                            Advertisement