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

    [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.
    • A Offline
      alexdobras
      last edited by

      it would be best to make possible to add the layers imported into Su, on different layers than SU's layers, cause currently it puts some geometry on Layer0 of SU, which is not good at all.

      1 Reply Last reply Reply Quote 0
      • A Offline
        alexdobras
        last edited by

        the rectangle lacks an edge for some reason by the way, as seen here:see.PNG

        1 Reply Last reply Reply Quote 0
        • A Offline
          alexdobras
          last edited by

          Also: Blender 2.49 has a very powerful DXF importer. I have tested it and installed everything includin text blocks all correct , without an error. Single thing that is not working are the layers. Unfortunately blender in not as quick and simple as SU 😐

          I wonder if you could take a look into how that Importer in made, so you could adapt it to SU.

          1 Reply Last reply Reply Quote 0
          • honoluludesktopH Offline
            honoluludesktop
            last edited by

            @alexdobras said:

            it would be best to make possible to add the layers imported into Su, on different layers than SU's layers, cause currently it puts some geometry on Layer0 of SU, which is not good at all.

            SketchUp layers are unlike those in other Cad applications. I think that the view layer is correct. If you elect to group the import at the end of running the application, the group will be placed on "layer0", and hiding/unhiding layers behaves as you see it. If you do not group the import, it should work in a more conventional manner. I will look at the problem with placing the entities on the wrong layer.

            1 Reply Last reply Reply Quote 0
            • honoluludesktopH Offline
              honoluludesktop
              last edited by

              Alex, good news is "layer0" is "RED_RECTANGLE" so the problem is fixable. Bad news, the missing entities may be "unsupported" by Dxf_In. Sorry, but the math for those entities may be (or not) beyond me. I will take a look.

              Is the attached image the one that you are looking for?Temp00.pngIf not tell me what is wrong? The line that intersects the circle is on "layer0". I suspect that is wrong. Can you tell me what layer it's on? Perhaps layer "0".

              1 Reply Last reply Reply Quote 0
              • A Offline
                alexdobras
                last edited by

                @honoluludesktop said:

                Alex, good news is "layer0" is "RED_RECTANGLE" so the problem is fixable. Bad news, the missing entities may be "unsupported" by Dxf_In. Sorry, but the math for those entities may be (or not) beyond me. I will take a look.

                Is the attached image the one that you are looking for?[attachment=0:fq5clw9c]<!-- ia0 -->Temp00.png<!-- ia0 -->[/attachment:fq5clw9c]If not tell me what is wrong? The line that intersects the circle is on "layer0". I suspect that is wrong. Can you tell me what layer it's on? Perhaps layer "0".

                it is almost good
                the line that intersects the circle is on layer named "0" on CAD, but i see that is on "Layer0" of Sketchup. that is bad, because SU should create the later named "0", so the dxf imported should pe placed on totally different layers than that existing ones.

                also: how could you import the dxf and get the entire rectangle, and almost the Block completely imported??

                1 Reply Last reply Reply Quote 0
                • A Offline
                  alexdobras
                  last edited by

                  there should be 5 layers:

                  layer0
                  0
                  red rectangle
                  yellow Block
                  Blue circle

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

                    In a DWG/DXF import the CAD layer '0' shouldbecomes= SKP layer 'Layer0' [nil]
                    Other layers should be named to suit... πŸ˜’

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      alexdobras
                      last edited by

                      here are the layers in SU:
                      please notice that there is Layer0 and 0
                      Capture.PNG

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        alexdobras
                        last edited by

                        here is the layout in DraftSight :
                        draftsight.PNG

                        notice that the name "red rectangle" disappears from the layer tab in SU.

                        i don't know what you did Honoluludesktop, that you got the picture earlier showed.
                        and by the way, how did you get all the lines importing accurately ?

                        1 Reply Last reply Reply Quote 0
                        • honoluludesktopH Offline
                          honoluludesktop
                          last edited by

                          Looks like you got another post in while I was writing the other.>_< The accurate image is based another application that I use to check my work. I placed the SU layer window over it in order that you can ID the layers.

                          1 Reply Last reply Reply Quote 0
                          • honoluludesktopH Offline
                            honoluludesktop
                            last edited by

                            Yes, in my case, "Red_Rectangle" is missing. While I am moving ahead on this, I would like to get the opinion of those that are more experienced then myself. Bottom line is that the app. should conform to Acad, GCD/4D (the reason I wrote this plugin), and SU specifications.

                            Btw, Dxf_In currently doesn't do splines, ellipses, or polyface entities. Ellipsis can be added in the future, but polyface entities, and splines are outside of my comprehension of their computer math algorithms.

                            1 Reply Last reply Reply Quote 0
                            • A Offline
                              alexdobras
                              last edited by

                              @honoluludesktop said:

                              Looks like you got another post in while I was writing the other.>_< The accurate image is based another application that I use to check my work. I placed the SU layer window over it in order that you can ID the layers.

                              but how did you get that accurate importing? i see all the lines in your SU

                              1 Reply Last reply Reply Quote 0
                              • honoluludesktopH Offline
                                honoluludesktop
                                last edited by

                                Tig, Do you think it will be a problem if I add layer "0" to the set along with layer0"? If a problem, why? Don't know if I can do it, but was about to try having both.

                                1 Reply Last reply Reply Quote 0
                                • honoluludesktopH Offline
                                  honoluludesktop
                                  last edited by

                                  Alex, getting there. The yellow block is erroneously being replicated. Maybe tomorrow.


                                  Temp00.png

                                  1 Reply Last reply Reply Quote 0
                                  • A Offline
                                    alexdobras
                                    last edited by

                                    i see in the picture, that the yellow Block is placed 2-times, for some reason 😲
                                    pray it will work tomorrow πŸ’š

                                    1 Reply Last reply Reply Quote 0
                                    • A Offline
                                      alexdobras
                                      last edited by

                                      also, it is an advance already, because i see the rectangle fully imported into SU.

                                      1 Reply Last reply Reply Quote 0
                                      • honoluludesktopH Offline
                                        honoluludesktop
                                        last edited by

                                        Alex, This should do for now. Temp00.pngThe plugin needs to be tested for lines, circles, arcs, faces, 3dfaces, and polylines.dxf_In_v1.28.rbI will have to work on the problem group or component transformations before I add ellipses to the supported entities.

                                        1 Reply Last reply Reply Quote 0
                                        • A Offline
                                          alexdobras
                                          last edited by

                                          i read the above post
                                          i saw "The plugin needs to be tested for lines, circles, arcs, faces, 3dfaces, and polylines." and i created a new file with everything that you said. So, here iti is:test4plugin.dxf
                                          it is a model that has a layer for each element that you have requested.

                                          after testing it in SU, this is what it needs to be said:

                                          1. everything imported pretty well, but 3Dfaces and Blocks. (blocks i tested with other files, and got the error"bloks not suppoerted)

                                          here is what is seen in CAD DraftSightwhat is in SU

                                          1. other thing; i think it is a bug: everytime i open an multi-layered dxf in SU, the layer "PERGOLAS" is automatically imported, for no reason. here are the previews:

                                          ![what's with "PERGOLAS" ?](/uploads/imported_attachments/LpiM_layerstrangeness0.PNG "what's with "PERGOLAS" ?") ![here's on different file. the "PERGOLAS" still appears for some reason](/uploads/imported_attachments/JpAL_layerstrangeness2.PNG "here's on different file. the "PERGOLAS" still appears for some reason")

                                          1. the last thing: is that SU's Layer0, when is turned off, everything disappears. It should better dissapear only what's on Layer0. If a create another file with two layers on SU, and put different objects on diffenret layers, when i turn off Layer0, not everything disappears.

                                          Layer0 turned off- influences everything Layer0 turned off - doesn't influence other layers

                                          1 Reply Last reply Reply Quote 0
                                          • honoluludesktopH Offline
                                            honoluludesktop
                                            last edited by

                                            If you imported a Dxf into a existing file, there may be left over layers. Check by purging the file.

                                            Yes, "nested blocks" are not currently supported, and I am working on the Acad entity "Insert" (which is like a transformed component instances).

                                            What problem did you find with 3DFaces? I just discovered that the surface gets put on the correct layer, but its edges remain on layer0.

                                            SketchUp Layers are not like Acad layers. I believe that it is a mistake to eliminate Layer0. You can control entity visibility with the imported Acad layers, but the consensus here on SketchUcation is that you should always draw on layer0. Perhaps at a later time, I can offer removing Layer0 as a help menu option.

                                            Dxf_In is written (to the best of my in-abilities:-) to conform to Acad's Dxf specifications. Problem is, every other Cad program that writes Dxf, only does so in terms of that application's characteristics, and sometimes fails to translate perfectly. See previous discussion. Because many Dxf files are not from Acad, it's necessary to check the changes to Dxf_In don't compromise the original Acad specification. All that takes time, and I don't always succeed.

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

                                            Advertisement