sketchucation logo sketchucation
    • 登入
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🔌 Smart Spline | Fluid way to handle splines for furniture design and complex structures. Download

    [Plugin] FreeDXF Importer

    已排程 已置頂 已鎖定 已移動 Plugins
    148 貼文 41 Posters 185.0k 瀏覽 41 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • G 離線
      gwirth
      最後由 編輯

      I did some more digging around and finally found the FreeDFX-v0.57 plugin that I was looking for that works with my training materials. Is there somewhere I can upload it to so that others can find it as well?

      Smooth Sailing,

      Gus

      1 條回覆 最後回覆 回覆 引用 0
      • J 離線
        Jim
        最後由 編輯

        @gwirth said:

        I did some more digging around and finally found the FreeDFX-v0.57 plugin that I was looking for that works with my training materials. Is there somewhere I can upload it to so that others can find it as well?

        Smooth Sailing,

        Gus

        You can just attach it to a reply here on this topic.

        Hi

        1 條回覆 最後回覆 回覆 引用 0
        • G 離線
          gwirth
          最後由 編輯

          Here is the FreeDXF-0.57 plugin for use with SketchUp 8.0 It is needed to go with the training materials for the California Energy Commission (CEC) CBECC-Com energy modeling software using the OpenStudio plugin for SketchUp.

          Gus


          For use with SketchUp 8.0

          1 條回覆 最後回覆 回覆 引用 0
          • A 離線
            Aurust
            最後由 編輯

            I'm having an issue getting this to work on a DXF file saved as 2010 version. I get this error in the Ruby console when I try to import:

            Error: #<NoMethodError: undefined method empty?' for nil:NilClass> C:/Users/TEMP.AAP.000/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/jf-FreeDXF/freedxf.rb:1014:in draw_mtext'
            C:/Users/TEMP.AAP.000/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/jf-FreeDXF/freedxf.rb:390:in draw' C:/Users/TEMP.AAP.000/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/jf-FreeDXF/freedxf.rb:286:in block in import'
            C:/Users/TEMP.AAP.000/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/jf-FreeDXF/freedxf.rb:271:in each' C:/Users/TEMP.AAP.000/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/jf-FreeDXF/freedxf.rb:271:in import'
            C:/Users/TEMP.AAP.000/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/jf-FreeDXF/freedxf.rb:236:in do_import' C:/Users/TEMP.AAP.000/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/jf-FreeDXF/freedxf.rb:136:in block in do_options'
            C:/Users/TEMP.AAP.000/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/jf-FreeDXF/SKUI/events.rb:82:in call' C:/Users/TEMP.AAP.000/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/jf-FreeDXF/SKUI/events.rb:82:in block in trigger_event'
            C:/Users/TEMP.AAP.000/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/jf-FreeDXF/SKUI/events.rb:78:in each' C:/Users/TEMP.AAP.000/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/jf-FreeDXF/SKUI/events.rb:78:in trigger_event'
            C:/Users/TEMP.AAP.000/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/jf-FreeDXF/SKUI/window.rb:357:in event_control_callback' C:/Users/TEMP.AAP.000/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/jf-FreeDXF/SKUI/window.rb:311:in callback_handler'
            C:/Users/TEMP.AAP.000/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/jf-FreeDXF/SKUI/window.rb:269:in block in add_callback' SketchUp:1:in call'

            Any ideas what is going on?

            1 條回覆 最後回覆 回覆 引用 0
            • TIGT 離線
              TIG Moderator
              最後由 編輯

              Until Jim fixes it...
              I suspect you have a piece of Mtext in the DXF which is flaky.
              Currently the code checks if its 'sting' is empty before continuing, but it doesn't check if it exists !
              Edit the file using Notepad++ [TextWrangler on MAC].
              Find line 1014 and edit it as follows...
              return if txt.empty?
              should become...
              return if txt.nil?; return if txt.empty?

              There might be other instances of this in the code ?
              You can search for the other three uses of .empty? and ensure that before each test the existence of the relevant reference with .nil? is invoked. One is already trapped with a return, the next one needs a similar line adding as a fix. The line reading next if l.empty? needs a preceding **next** if l.nil? as that is inside a 'block' rather than in a 'method' and so it should not have a return.

              TIG

              1 條回覆 最後回覆 回覆 引用 0
              • R 離線
                ronjohnson936
                最後由 編輯

                I tried to import a .dxf file saved from Inkscape as an Autocad DXF R14 format and nothing happens.

                1 條回覆 最後回覆 回覆 引用 0
                • T 離線
                  TomDAYarch
                  最後由 編輯

                  When I install the plugin and reopen SkUp (2017), I have an error message appear, telling me:

                  Error Loading File C:/Users/Resource/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/freedxf/freedxf.rb
                  Error: #<SyntaxError: C:/Users/Resource/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/freedxf/freedxf.rb:658: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n'
                  when 1: v = [0 , -h]

                                 ^
                  

                  C:/Users/Resource/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/freedxf/freedxf.rb:659: syntax error, unexpected keyword_when, expecting keyword_end
                  when 2: v = [-w/2.0, -h]

                              ^
                  

                  C:/Users/Resource/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/freedxf/freedxf.rb:660: syntax error, unexpected keyword_when, expecting keyword_end
                  when 3: v = [-w , -h]

                              ^
                  

                  C:/Users/Resource/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/freedxf/freedxf.rb:661: syntax error, unexpected keyword_when, expecting keyword_end
                  when 4: v = [0 , -h/2.0]

                              ^
                  

                  C:/Users/Resource/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/freedxf/freedxf.rb:662: syntax error, unexpected keyword_when, expecting keyword_end
                  when 5: v = [-w/2.0, -h/2.0]

                              ^
                  

                  C:/Users/Resource/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/freedxf/freedxf.rb:663: syntax error, unexpected keyword_when, expecting keyword_end
                  when 6: v = [-w , -h/2.0]

                              ^
                  

                  C:/Users/Resource/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/freedxf/freedxf.rb:664: syntax error, unexpected keyword_when, expecting keyword_end
                  when 7: v = [0 , 0]

                              ^
                  

                  C:/Users/Resource/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/freedxf/freedxf.rb:665: syntax error, unexpected keyword_when, expecting keyword_end
                  when 8: v = [-w/2.0, 0]

                              ^
                  

                  C:/Users/Resource/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/freedxf/freedxf.rb:666: syntax error, unexpected keyword_when, expecting keyword_end

                  1 條回覆 最後回覆 回覆 引用 0
                  • TIGT 離線
                    TIG Moderator
                    最後由 編輯

                    Jim decided to no longer support it, and it's no longer available from the PluginStore.

                    As it's an RB file you can edit it using a plain-text editor like Notepad++.
                    C:/Users/Resource/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/freedxf/**freedxf.rb**
                    Do this only for yourself, because posting or distributing an altered version might infringe the author's copyright?

                    The allowable syntax in ' case' structures changed with newer Ruby versions...
                    Find the lines throwing the error, they seem to start around line #658 - e.g.
                    when 1**:** v = [0 , -h]
                    and replace the : (colon) with a ; (semicolon) so it becomes:
                    when 1**;** v = [0 , -h]

                    Repeat this editing for all of the other when lines which include the troublesome **:**

                    Save the changed RB file and restart SketchUp...
                    See if the error has be sidestepped...

                    If not. then report the next set of error-messages !

                    TIG

                    1 條回覆 最後回覆 回覆 引用 0
                    • E 離線
                      Einstein
                      最後由 編輯

                      Hi!
                      My friend has a problem with this plugin. Installed properly, using SketchUp 17 on Win10. She can choose a file to import but when she clicks Import in the plugin window, nothing happens. We tried to export an AutoCAD file into a few kinds of DXF but none of them worked. What could it be?

                      1 條回覆 最後回覆 回覆 引用 0
                      • S 離線
                        sumitbhowmick84
                        最後由 編輯

                        Hello Jim,

                        Off lately your link to download this plugin doesn't work, there must be some issue here. cause when I search for the same it shows no result in the store. Now I am at a dead end with my work.

                        1 條回覆 最後回覆 回覆 引用 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 7
                        • 8
                        • 7 / 8
                        • 第一個貼文
                          最後的貼文
                        Buy SketchPlus
                        Buy SUbD
                        Buy WrapR
                        Buy eBook
                        Buy Modelur
                        Buy Vertex Tools
                        Buy SketchCuisine
                        Buy FormFonts

                        Advertisement