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.
    • HumpmetwiceH Offline
      Humpmetwice
      last edited by

      @jim said:

      @Kurt - Thanks. This is what I get when importing your .dxf. It looks mostly OK, except the texts are not rotated (which I am aware but haven't fixed that yet.)

      Far more than what I get! I think I could work with that if you would tell me the secret to what I may be doing wrong. Is it the text we use?
      Thanks Kurt

      1 Reply Last reply Reply Quote 0
      • D Offline
        driven
        last edited by

        when I first import and use zoom extents I get this
        initial import

        then in SU, I deleted the \A1; text, I did 'select-all' to changed the font to momo 12pt, moved a couple of overlaps and in 'parallel projection' & 'top view'
        I get this.
        on the mac
        the text is on Layer0
        the model and dim lines are on the text layer,
        and the dimensionline layer is empty

        john
        @Kurt hope you don't mind me testing your file, consistency helps debugging...

        learn from the mistakes of others, you may not live long enough to make them all yourself...

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

          @John - Select "No" for the Screen Text option to use 3D text (well, 3D in only 2D.)

          Hi

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

            @unknownuser said:

            @jim said:

            @Kurt - Thanks. This is what I get when importing your .dxf. It looks mostly OK, except the texts are not rotated (which I am aware but haven't fixed that yet.)

            Far more than what I get! I think I could work with that if you would tell me the secret to what I may be doing wrong. Is it the text we use?
            Thanks Kurt

            Just try the latest version. (This link is always the most recent.)

            Hi

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

              @driven said:

              the text is on Layer0
              the model and dim lines are on the text layer,
              and the dimensionline layer is empty

              Yes, this is similar to what I get when using SketchUp's Pro dxf importer.

              (added text rotation, btw in latest. v0.6.1)

              Hi

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

                I've been looking around at the various ruby based importers for SketchUp and I see that no one uses the Importer class. If this class is used the importer can be found in the native import list which would be very nice.
                http://code.google.com/apis/sketchup/docs/ourdoc/importer.html

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

                1 Reply Last reply Reply Quote 0
                • D Offline
                  Dekker
                  last edited by

                  It looks like the "inputbox.rb" plugin is no longer found in bitbucket 😞

                  Any alternates available?

                  EDIT: Never mind... Found it! For the reference of others, the source is located here: http://forums.sketchucation.com/viewtopic.php?f=323&t=19103&p=347871&hilit=+inputbox.rb+#p347871

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

                    Sorry 'bout that, Dekker. I am haphazard with my plugins - but I'm glad you found inputbox.rb

                    Any thoughts on the importer?

                    Hi

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

                      The link to inputbox.rb is dead.

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

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

                        Does it handle materials in any way?

                        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

                          @thomthom said:

                          Does it handle materials in any way?

                          No. I don't remember seeing a "material" or "color" property for dxf entities. Isn't the color based on an entities' layer?

                          Hi

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

                            You are right.
                            A DXF file gives objects layers, and those layers have colors.
                            If you take the SKP layers the colors export as random colors.
                            Even with similar SKPs newly made layers get unconnected colors.
                            It's possible to rationalize a DXF by post processing it's text - I have a commercial tool I've written which uses the native DXF exporter, but where the client wanted all DXF layers to be consistently colored; so it has a 'lookup table' and ensures consistency by 'stream-editing' the DXF's text after it's made.
                            Another way to have materials==colors is to export a custom made DXF but ignore the SKP's layers and using each material as if it were a DXF-layer... that way objects in the DXF are then grouped by each DXF 'layer' which is really made from the SKP's material-color rather than the proper SKP-layer...

                            TIG

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

                              Dec 2011 - I have removed the external dependency on my inputbox.rb - it is no longer required as a separate download. Also, I attached the download to the first post of this topic rather than linking to an external site. Hopefully, these changes will make it easier for folks to try.

                              Hi

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

                                Is DXF extendable? I wonder if AutoDesk writes DXF with extra material info..?

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

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

                                  A DXF can include all the types of data that you get in a DWG file itself.
                                  However, as objects have layers and layers have colors, that's it.
                                  You can assign attributes to objects containing additional info, so you can pass [otherwise-unused] data... but how that's useful later on is questionable.

                                  TIG

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

                                    I'm trying to find a good way to export a Revit model to SketchUp.

                                    I have tried exporting to FBX and then use Autodesk's converter utility to convert to DAE - but that fails on import every time on any model in SU. Fail in Blender as well.

                                    DWG and DXF import in SU - but uses layer material, as you describe. However, if I import the same DXF into another Autodesk application like 3DS - the materials are like how they where defined in Revit. And that is why I'm exploring this topic.

                                    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

                                      FreeDXF imports acad layers as SketchUp Groups, so it may be possible to color the Groups according to their acad layer color number.

                                      Hi

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

                                        It doesn't seem to work for me. I have Sketchup 8, with the new maintenance pack. It shows up in the plugins menu, then when executed it asks for arc segments, etc. When I click ok, nothing shows up. I'm using DWGeditor 2007 to create dxfs in ASCii 2007 format.

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

                                          @syfyguy said:

                                          It doesn't seem to work for me. I have Sketchup 8, with the new maintenance pack. It shows up in the plugins menu, then when executed it asks for arc segments, etc. When I click ok, nothing shows up. I'm using DWGeditor 2007 to create dxfs in ASCii 2007 format.

                                          Can you post or send the file?

                                          Hi

                                          1 Reply Last reply Reply Quote 0
                                          • 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
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 2 / 8
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement