• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Scheduled Pinned Locked Moved Plugins
200 Posts 41 Posters 269.7k 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.
  • M Offline
    Marc_Vierboom
    last edited by 15 Jun 2011, 12:29

    LS,

    I have installed (and working) the Sketchup 8 Dutch version. I have pasted the plugin ( Dxf_In_v2.2.rb ) to the directory: C:\Program Files\Google\Google SketchUp 8\Plugins
    Unfortunately I have no additonal dxf or dwg import line in my pull down menu File - Import (not even in the bottom of the list)

    Any idea what's up?
    Screendump from file - import

    1 Reply Last reply Reply Quote 0
    • B Offline
      Bep
      last edited by 15 Jun 2011, 17:12

      @marc_vierboom said:

      LS,

      I have installed (and working) the Sketchup 8 Dutch version. I have pasted the plugin ( Dxf_In_v2.2.rb ) to the directory: C:\Program Files\Google\Google SketchUp 8\Plugins
      Unfortunately I have no additonal dxf or dwg import line in my pull down menu File - Import (not even in the bottom of the list)

      Any idea what's up?
      [attachment=1:3bngwx91]<!-- ia1 -->Screendump.jpg<!-- ia1 -->[/attachment:3bngwx91]

      Hallo Marc,

      Look here [attachment=0:3bngwx91]<!-- ia0 -->dxf import.jpg<!-- ia0 -->[/attachment:3bngwx91]


      dxf import.jpg

      "History is written by the winners"

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by 19 Oct 2011, 20:17

        The file has Mac line endings - DxfIn (as well as my own .dxf importer) is not handling them correctly.

        You'll need to convert them file to use Unix or DOS line endings in the meantime.

        Hi

        1 Reply Last reply Reply Quote 0
        • B Offline
          Bárbara Lopes
          last edited by 17 Nov 2011, 16:31

          Hi, I placed the plugin into the SketchUp Plugins folder, but it does not show on the file menu. I closed and re-opened my sketch up and nothing appeared yet. Please, can anybody help me? Tnks

          1 Reply Last reply Reply Quote 0
          • T Offline
            TIG Moderator
            last edited by 18 Nov 2011, 10:13

            @bárbara lopes said:

            Hi, I placed the plugin into the SketchUp Plugins folder, but it does not show on the file menu. I closed and re-opened my sketch up and nothing appeared yet. Please, can anybody help me? Tnks
            Are you looking in the correct menu ? UI.menu("File").add_item("Import DXF") 😕

            TIG

            1 Reply Last reply Reply Quote 0
            • F Offline
              freeWilly
              last edited by 5 Dec 2011, 16:07

              I installed the plugin on my Mac.
              I see it in the file menu, and can start an import.
              But after a certain time it aborts an I get an error window "<error> or empty File".
              I have tried different DXF-Files.

              What do I do wrong?

              Rolf

              1 Reply Last reply Reply Quote 0
              • T Offline
                TIG Moderator
                last edited by 5 Dec 2011, 17:50

                Can you post one of the files so some other users can test and report back, it's almost impossible to say from your info so far...

                TIG

                1 Reply Last reply Reply Quote 0
                • F Offline
                  freeWilly
                  last edited by 5 Dec 2011, 18:17

                  I took the file posted on page one of this thread (ALBA.zip), because I wanted to be sure that it's not a problem of my data.
                  It starts to count up in the status line until 5 and aborts then.

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    TIG Moderator
                    last edited by 6 Dec 2011, 11:59

                    I'm on PC.
                    I've just [re]tried Alba.dxf.
                    Used 'centimeters' as the units - did you ?
                    It works; but did take a while to complete ['whiting-out' in the process... BUT still processing away nevertheless] AND also it does appear ~66.6m from the origin [but's that's where it is stupidly located in the DXF!].
                    Comparing the result from the equivalent Pro DXF import... it is missing a few of small lines around a lip and it takes 100x longer! BUT it works and the result is readily usable/fixupable...

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • F Offline
                      freeWilly
                      last edited by 6 Dec 2011, 14:52

                      yes, I tried various options (including centimeter). And it run for quite a while, but with all tries it finally aborted.
                      I have SketchUp 8.0.11751 for Mac (Intel).

                      Rolf

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        TIG Moderator
                        last edited by 6 Dec 2011, 15:53

                        Strange - as I say the PC version is slow but works eventually...
                        Are there any MAC users out there who have this working OK ?

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • F Offline
                          freeWilly
                          last edited by 6 Dec 2011, 16:03

                          is there a kind of a debug mode?
                          To see when, what, why?

                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            TIG Moderator
                            last edited by 7 Dec 2011, 10:38

                            Running it with the Ruby Console open is the best there is - there's not coded-in debugging that I can see...

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • S Offline
                              shrubman
                              last edited by 31 Aug 2012, 17:23

                              @freewilly said:

                              I installed the plugin on my Mac.
                              I see it in the file menu, and can start an import.
                              But after a certain time it aborts an I get an error window "<error> or empty File".
                              I have tried different DXF-Files.

                              What do I do wrong?

                              Rolf

                              I'm having the same problem. No matter what I do to prepare the file in illustrator, the import dxf dialog in sketchup gives me that error window and quits the import.

                              1 Reply Last reply Reply Quote 0
                              • C Offline
                                Chrisn2011
                                last edited by 30 Jan 2013, 20:09

                                This may be too late for you but I had used earlier versions of this on an iMac and found that there were sometimes problems which seem to relate to how the file is saved, some operating systems use carriage return -linefeed to denote the end of a line others just used one. I made a mod which allowed it to work on the iMac (see my post of Thu Feb 17, 2011 12:29 am), it may be worth trying it on the new version
                                I edited the files using Textedit on the mac, just be careful that it doesn't add a .txt extension

                                To help I have listed the suggested change below

                                Find the following bit of code in the.rb file

                                #get all block names, save them along with their location
                                begin
                                	aFile=File.open(chosen_file, "r")
                                rescue
                                	result=UI.messagebox "<Error> The DriveName\\Path\\FileName.dxf may not\nbe standard ASCII characters. If so, place the Dxf file\nin a ASCII named folder before accessing that file.", MB_OK
                                end
                                aFile.each_line do |line|						
                                	count=count +1
                                	if count==odd_number					#strip dxf tags thanks to TIG
                                		odd_number=odd_number + 2
                                		line=line.strip
                                	end
                                
                                	last_line=this_line							#save last line data
                                	this_line=line
                                

                                and insert the line
                                line=line.chomp+"\n"
                                after
                                aFile.each_line do |line|
                                it should ensure that all the data read in is terminated in a way that ruby scripts accept, and it shouldn't affect the way they run under windows either.

                                1 Reply Last reply Reply Quote 0
                                • L Offline
                                  ltorresgdcllc
                                  last edited by 12 Feb 2013, 14:34

                                  Thank you!!!

                                  1 Reply Last reply Reply Quote 0
                                  • A Offline
                                    ANewBeat
                                    last edited by 20 Feb 2013, 21:57

                                    @shrubman said:

                                    @freewilly said:

                                    I installed the plugin on my Mac.
                                    I see it in the file menu, and can start an import.
                                    But after a certain time it aborts an I get an error window "<error> or empty File".
                                    I have tried different DXF-Files.

                                    What do I do wrong?

                                    Rolf

                                    I'm having the same problem. No matter what I do to prepare the file in illustrator, the import dxf dialog in sketchup gives me that error window and quits the import.

                                    Same here: "<Error> or Empty File"
                                    Mac OS X 10.6.8
                                    Sketchup 8.0.16845

                                    1 Reply Last reply Reply Quote 0
                                    • Dave RD Offline
                                      Dave R
                                      last edited by 21 Feb 2013, 10:36

                                      Did you read the next post? Maybe it will help since it seems to answer the question.

                                      The best option would be to use the Pro version of SketchUp. 😒

                                      Etaoin Shrdlu

                                      %

                                      (THERE'S NO PLACE LIKE)

                                      G28 X0.0 Y0.0 Z0.0

                                      M30

                                      %

                                      1 Reply Last reply Reply Quote 0
                                      • A Offline
                                        ANewBeat
                                        last edited by 21 Feb 2013, 13:15

                                        OK, so I added the line=line.chomp+"\n" as described. What does the error message "Database contains Unsupported Entitys: SPLINE" mean? After receiving the message the file continued to import properly.

                                        1 Reply Last reply Reply Quote 0
                                        • A Offline
                                          ANewBeat
                                          last edited by 21 Feb 2013, 13:58

                                          Upon further inspection my file did not import correctly. It seams to be having trouble with the curves. I've attached the DXF file, a screenshot of the original artwork in Illustrator CS4
                                          Screenshot of paths in Illustrator CS4

                                          and a screenshot of the resulting import into Sketchup 8.
                                          Screen shot of resulting import in Sketchup8


                                          DXF exported from Illustrator CS4

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

                                          Advertisement