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

    [Plugin] Kicad - .brd Importer — 15 March 2011

    Scheduled Pinned Locked Moved Plugins
    13 Posts 5 Posters 36.2k Views 5 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.
    • G Offline
      giodi1973
      last edited by

      Ciao to all,
      I've updated the kicad plugin with some bugfix, and added several skp components. Many of them are imported from the wings files developed by kicad community. I also added some pcbnew library, where skp models are linked. I hope someone could find this plugin useful.
      Thanks
      Bye
      giodi1973

      ps: I've splitted the archive in two pieces due to the 4MB size constraints

      1 Reply Last reply Reply Quote 0
      • W Offline
        watkins
        last edited by

        Dear Giovani,

        I would just like to thank you for your generosity. I don't think I will need the plugin myself, but it is good to know that there are talented people like your good self extending the range of applications for Sketchup.

        Best wishes,
        Bob

        1 Reply Last reply Reply Quote 0
        • K Offline
          keithp27540
          last edited by

          Hi Giovani,

          Your script could be really useful; but unfortunately, it either gives me a Bugsplat or appears to hang when I try to import the sample.brd. I am running on WindowsXP Pro with SketchUp 7 and followed your instructions in the readme.pdf file.

          I have written a ruby script that creates models of PCB's (from text extracted from an Allegro board format). I can't share this script because it was developed for use at my place of work and on company time so it is copyrighted and company property. Your script appears to have much greater functionality such as the options to draw layers and import silkscreen. I would be interested in assisting with your efforts and getting this running on SU7 but I have not been able to figure out where the error is occuring. The splat or hang is nearly instant so I don't see any syntax errors in the Ruby console window.

          Keith

          1 Reply Last reply Reply Quote 0
          • G Offline
            giodi1973
            last edited by

            @keithp27540 said:

            Hi Giovani,

            Your script could be really useful; but unfortunately, it either gives me a Bugsplat or appears to hang when I try to import the sample.brd. I am running on WindowsXP Pro with SketchUp 7 and followed your instructions in the readme.pdf file.

            I have written a ruby script that creates models of PCB's (from text extracted from an Allegro board format). I can't share this script because it was developed for use at my place of work and on company time so it is copyrighted and company property. Your script appears to have much greater functionality such as the options to draw layers and import silkscreen. I would be interested in assisting with your efforts and getting this running on SU7 but I have not been able to figure out where the error is occuring. The splat or hang is nearly instant so I don't see any syntax errors in the Ruby console window.

            Keith

            Ciao Keith,
            sorry if I haven't replied before. If the script fails as soon as it starts, the problem could be related to some user privileges.
            In fact the script first reads the file, then it locates the 3D models...
            Pls could you tell me:

            • if you're running sketchup as administrator or super user or restricted user...
            • if sketchup hangs together with the script, or you can continue working
            • what's the full path of kicad models
              Meanwhile, I'll try to reproduce your issue on a windows machine (I don't know if I can catch Sketchup 7, maybe 😎
              Pls be free to reply me for any suggestion.
              Thanks for your feedback
              Ciao
              Giovanni
            1 Reply Last reply Reply Quote 0
            • K Offline
              keithp27540
              last edited by

              @giodi1973 said:

              Ciao Keith,
              sorry if I haven't replied before. If the script fails as soon as it starts, the problem could be related to some user privileges.
              In fact the script first reads the file, then it locates the 3D models...
              Pls could you tell me:

              • if you're running sketchup as administrator or super user or restricted user...
              • if sketchup hangs together with the script, or you can continue working
              • what's the full path of kicad models
                Meanwhile, I'll try to reproduce your issue on a windows machine (I don't know if I can catch Sketchup 7, maybe 😎
                Pls be free to reply me for any suggestion.
                Thanks for your feedback
                Ciao
                Giovanni

              Giovanni, the script fails as soon as it starts and causes the SketchUp bugsplat. No way to keep working, as SketchUp exits when it generates the bugsplat. I am running as a user with administrator rights.

              I extracted the brd file and models to "C:\Documents and Settings<user_name>\My Documents\downloads\Kicad" keeping the directory structure in your zip file.

              I'll poke around some when I have a chance and see if I can assist with locating the problem.

              --Keith

              1 Reply Last reply Reply Quote 0
              • G Offline
                giodi1973
                last edited by

                Ciao Keith,
                I did some trial in order to verify some issue on Windows Platform. Pls find below the test conditions:

                • Microsoft Windows XP SP3
                • Google Sketchup 8.0.4811
                • User privileges restricted (no administrator)
                  kicad.rb and kicad folder (with inside kicad_class.rb and kicad_parser.rb) under C:\Program Files\Google\Google SketchUp 8\Plugins
                  kicad folder (with inside components) under C:\Program Files\Google\Google SketchUp 8\Components

                With this settings, I did the following trials:

                • Launched Sketchup and imported sample.brd
                • Launched Sketchup, opened sample.skp, then imported sample.brd
                  In both cases the script worked perfectly. But if I perform the script two times (without restart Sketchup), the second one splats. I'll investigate,maybe the problem is some uninitialized variable in the script...
                  Ciao
                  Giovanni
                1 Reply Last reply Reply Quote 0
                • G Offline
                  giodi1973
                  last edited by

                  @keithp27540 said:

                  @giodi1973 said:

                  Ciao Keith,
                  sorry if I haven't replied before. If the script fails as soon as it starts, the problem could be related to some user privileges.
                  In fact the script first reads the file, then it locates the 3D models...
                  Pls could you tell me:

                  • if you're running sketchup as administrator or super user or restricted user...
                  • if sketchup hangs together with the script, or you can continue working
                  • what's the full path of kicad models
                    Meanwhile, I'll try to reproduce your issue on a windows machine (I don't know if I can catch Sketchup 7, maybe 😎
                    Pls be free to reply me for any suggestion.
                    Thanks for your feedback
                    Ciao
                    Giovanni

                  Giovanni, the script fails as soon as it starts and causes the SketchUp bugsplat. No way to keep working, as SketchUp exits when it generates the bugsplat. I am running as a user with administrator rights.

                  I extracted the brd file and models to "C:\Documents and Settings<user_name>\My Documents\downloads\Kicad" keeping the directory structure in your zip file.

                  I'll poke around some when I have a chance and see if I can assist with locating the problem.

                  --Keith

                  Keith, I thought the issue could be related to some script conflict. To test this, you need to remove all the scripts except the kicad one, or to perform a new installation and adding kicad plugin only.
                  The test I performed have been done with a bare configuration.
                  Giovanni

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    giodi1973
                    last edited by

                    Attached some screen-shot of the plugin....


                    This screen-shot shows the Kicad board in 2d view under pcbnew


                    This screen-shot shows the Kicad board imported by Sketchup


                    Another brd file with 3 boards


                    Sketchup version of the multipcb .brd file

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      bigelowt
                      last edited by

                      Giovanni,

                      Thanks for this great plugin! Unfortunately, I've got a brd that I'm having trouble importing...

                      netduinopluslayout.zip

                      If you have a moment to check it out, that would be great.

                      Cheers!

                      Troy

                      1 Reply Last reply Reply Quote 0
                      • G Offline
                        giodi1973
                        last edited by

                        @bigelowt said:

                        Giovanni,

                        Thanks for this great plugin! Unfortunately, I've got a brd that I'm having trouble importing...

                        [attachment=0:r4y89nzm]<!-- ia0 -->netduinopluslayout.zip<!-- ia0 -->[/attachment:r4y89nzm]

                        If you have a moment to check it out, that would be great.

                        Cheers!

                        Troy

                        Ciao Troy,
                        I've checked your file but it looks a binary format not recognized by kicad. Even if the filetype is .brd, the internal structure is different. This is why it can't be imported from my plugin. Which kind of ecad you have used to build it? Maybe it could be any converter around the net.
                        Pls let me know for any help...
                        Ciao
                        Giovanni

                        1 Reply Last reply Reply Quote 0
                        • H Offline
                          hmuller2
                          last edited by

                          Hi ,
                          when importing any brd files (4 ... 10 layers) in Sketchup 8 Pro I always get the error message "PCBNEW-BOARD missing not closing properly". Maybe this plugin was an idea for the KiCad project http://www.kicad-pcb.org/display/KICAD/KiCad+EDA+Software+Suite but not followed up since march 2011 ? 😒

                          1 Reply Last reply Reply Quote 0
                          • G Offline
                            giodi1973
                            last edited by

                            @hmuller2 said:

                            Hi ,
                            when importing any brd files (4 ... 10 layers) in Sketchup 8 Pro I always get the error message "PCBNEW-BOARD missing not closing properly". Maybe this plugin was an idea for the KiCad project http://www.kicad-pcb.org/display/KICAD/KiCad+EDA+Software+Suite but not followed up since march 2011 ? 😒

                            Ciao hmuller2,
                            could you attach the .brd file where you have encountered this error message? You can send it by email too...
                            Thanks
                            Ciao
                            Giovanni

                            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