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

    [Plugin] FreeDXF Importer

    Scheduled Pinned Locked Moved Plugins
    148 Posts 41 Posters 174.8k Views 41 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.
    • T Offline
      Tenere
      last edited by

      😒 %(#4000FF)[I've got a script not loading error on start with free version 8.0.4811.
      I would assume I had the files in the right places although I can't see the folder layout image in the script posting - just an image name.
      Bound to be missing the obvious, be grateful if someone could nudge me in the right direction......cheers.

      Ooh one other question......Can I load the SU pro trial in tandem with my free version without bu#@ering it up or compromising the trial?....would quite like to see what I'm missing.] πŸ‘

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

        Capture.PNG Does you Sketchup Plugins folder look like this ?

        TIG

        1 Reply Last reply Reply Quote 0
        • T Offline
          Tenere
          last edited by

          %(#0000FF)[πŸ‘ Hi Tig
          Thanks for responding. My directory looks correct, are there any dependencies I may be missing?
          I did read something in an earlier incarnation about the file naming system having to be basic without spaces ('joliet' stuff!!), it looks a bit more like an issue in that direction perhaps, paths & stuff....he says clutching at straws!!
          Error:]

          Error Loading File C:/Program Files/Google/Google SketchUp 8/Plugins/freedxf/freedxf.rb
          no such file to load -- inputboxError Loading File freedxf_ext.rb
          no such file to load -- inputbox

          %(#0000FF)[.......The file is definitely there!
          Being skint takes up a lot of my time! Just can't justify the Pro version though so your help is much appreciated!]

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

            I am having the same problem? but it does not let me inmport

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

              The download page's image is wrong !
              There should also be the file
              inputbox.rb
              in the subfolder.Capture.PNG
              IF you get the latest zipped version of the tool it should include that file !

              TIG

              1 Reply Last reply Reply Quote 0
              • T Offline
                Tenere
                last edited by

                Bingo....your a star Tig
                That sorted it, many thanks for your expertise. I'm raising a beer to you right now!....Hic!....well it is Friday!

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

                  Handling metric units would realy be a plus. It is easily possible to scale from metric to imperial but the reverse is no as easy as it requires to scale by a fractional number.
                  As all my DXFs are in cm I can not use FreeDXF.

                  Please consider supporting metric drawings.

                  PS: If somebody knows a way, please reply!

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

                    1" is 2.54cm
                    therefore
                    1cm is 0.393700787401574803" [1/2.54]
                    However, Sketchup's in-built accuracy regards 0.3937007" as being 'exactly' 1cm... so you can use that [or even 0.3937] as your scaling factor. After all we are talking about modeling 'buildings' here, not 'swiss-watches'...

                    TIG

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

                      Hi -

                      I am having trouble getting the plugin to run. I'm on a Mac running OSX 10.6.8 and Sketchup 8.0. I downloaded the latest version v0.57 and put the .rbz file in my plugin folder. There are lots of other plugins there, though no others of type rbz.

                      When I start Sketchup, there is no FreeDXF Importer item in the Plugins menu. I am probably missing something really simple -- I'm a pretty new Sketchup user. Any help is much appreciated! Thanks!

                      Bill
                      

                      Plugin folder.png

                      1 Reply Last reply Reply Quote 0
                      • pbacotP Offline
                        pbacot
                        last edited by

                        Hi! try this:

                        http://support.google.com/sketchup/bin/answer.py?hl=en&answer=38583

                        MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

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

                          @pbacot said:

                          Hi! try this:

                          http://support.google.com/sketchup/bin/answer.py?hl=en&answer=38583

                          Doh - thanks for that, it's all working now!

                          Bill

                          1 Reply Last reply Reply Quote 0
                          • BraikenridgeB Offline
                            Braikenridge
                            last edited by

                            I have sketchup 8.0 free and have put this .rbz ruby into the plugins folder but its not appearing when I load sketchup. Incidentally, nowhere does it let you unzip it either? Am I missing something? i'm trying to import a vector file from scan2cad

                            kind regards

                            1 Reply Last reply Reply Quote 0
                            • thomthomT Offline
                              thomthom
                              last edited by

                              @braikenridge said:

                              I have sketchup 8.0 free and have put this .rbz ruby into the plugins folder but its not appearing when I load sketchup. Incidentally, nowhere does it let you unzip it either? Am I missing something? i'm trying to import a vector file from scan2cad

                              To use RBZ packages you need to install them using the Install Extension feature in SketchUp: http://www.thomthom.net/thoughts/2012/01/installing-plugins-for-google-sketchup/#the-easy-way-8211-rbz-packages

                              Thomas Thomassen β€” SketchUp Monkey & Coding addict
                              List of my plugins and link to the CookieWare fund

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

                                I bumped the version to 0.7.1. For v0.7.0 I must have uploaded the wrong file. If your version says anything other than v0.7.1 then please update.

                                Thanks.

                                Hi

                                1 Reply Last reply Reply Quote 0
                                • S Offline
                                  srknytgn
                                  last edited by

                                  import in cm or mm would be nice, thanks.

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

                                    @srknytgn said:

                                    import in cm or mm would be nice, thanks.

                                    I agree, and I am working on it.

                                    Hi

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

                                      @jim said:

                                      @srknytgn said:

                                      import in cm or mm would be nice, thanks.

                                      I agree, and I am working on it.
                                      πŸ’­ Rather than recode any stuff in the 'data-processing' could you have an opening dialog to just ask the user to choose the input 'units'?
                                      Then after the import is done [inside its own 'container' [definition]], you can simply apply an XYZ scaling transformation to the container's entities, based at the ORIGIN.
                                      A simple lookup list of 'scaling_factors' based on inches to feet/m/cm/mm is all that is needed to make a single 'transform_entities' ?
                                      You could also ask for the 'Keep-CAD-Origin?', or NOT. If not, then the entities can be transformed [translated] by the vector from their bounds.min back to the ORIGIN - i.e. the instance's insertion-point...

                                      TIG

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

                                        Just updated to v 0.8.0 with a dialog for selecting the import units.

                                        2014-03-24_200018.png

                                        Hi

                                        1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          srknytgn
                                          last edited by

                                          hey jim,

                                          i'm trying to import a dxf file but it comes in scaled to inches.
                                          as an example i tried to import 1000x1000 square with a unitless autocad setting dxf and it came to sketchup 2540 x 2540 mm. i've choosen mm when the pop up displayed.

                                          do you think something was wrong?


                                          dxf_import.JPG


                                          dxf_import.dxf

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

                                            1000 'units' read from a DXF file are taken as 1000 inches.
                                            When you 'scale' it 'to mm' the 1000" --> 25400mm NOT the displayed 2540mm ?
                                            BUT looking into your DXF file... the box's edges are actually 100 'units' long! NOT 1000, so therefore it ought to produce 2540mm when 'scaled' as you showed ??

                                            If your DXF says something is 100 'units' long [taken as 100" as SketchUp's base-units are inches] and you tell it to scale it to 'mm' - then logically you will get something 2540mm long [which is 100" !]

                                            If you want to get it to assume the 100 'units' is actually 100mm then the scaling needs to be NOT 'TO mm' but 'FROM mm'.
                                            The scaling factor would then be:

                                            100.mm / 100.inch

                                            which is actually 1/25.4

                                            So 100 'units' --> 100" - which is then rescaled to be the smaller 'mm' dimension of exactly 100mm [100 / 25.4 = ~4" (3.93700787401574803") in base-units ]

                                            TIG

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 4 / 8
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement