• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[Plugin] IGES Export - 27 February 2012

Scheduled Pinned Locked Moved Plugins
58 Posts 32 Posters 62.5k Views
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
    thomthom
    last edited by 16 Feb 2012, 18:26

    @rainer.ochs said:

    What do you recommend to use instead of "typename"?

    Use .is_a?( Sketchup::Face ) etc...

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

    1 Reply Last reply Reply Quote 0
    • Z Offline
      Zacchia
      last edited by 16 Feb 2012, 23:01

      I have some files in iges format I would like to import in SU, so an importer would also be nice to have...

      1 Reply Last reply Reply Quote 0
      • A Offline
        Anssi
        last edited by 18 Feb 2012, 19:51

        One interesting part in this is that it creates "real" solid geometry out of SU "solids". Could it be expanded into the DXF format too? That would add a useful feature that the current DWG/DXF exporters lack.

        Anssi

        securi adversus homines, securi adversus deos rem difficillimam adsecuti sunt, ut illis ne voto quidem opus esset

        1 Reply Last reply Reply Quote 0
        • R Offline
          rainer.ochs
          last edited by 18 Feb 2012, 21:37

          @anssi said:

          Could it be expanded into the DXF format too?

          I got good results with HeeksCAD ( http://heeks.net) a freeware CAD program.
          It can import iges and once in Heeks you can save it to step, dxf and stl.
          The programs file converting is based on open cascade (http://www.opencascade.org) a very sophisticated system. As far as I have been testing, the results are reliable.

          1 Reply Last reply Reply Quote 0
          • R Offline
            rainer.ochs
            last edited by 27 Feb 2012, 19:27

            @zacchia said:

            I have some files in iges format I would like to import in SU, so an importer would also be nice to have...

            There is a description on http://eagleup.wordpress.com/?s=iges&searchbutton=go%21
            on Importing a STEP or IGES file into Sketchup using FreeCAD and MeshLab.
            file.step => FreeCAD => file.stl => MeshLab => file.dae => Sketchup => file.skp

            1 Reply Last reply Reply Quote 0
            • Z Offline
              Zacchia
              last edited by 29 Feb 2012, 07:39

              @rainer.ochs said:

              There is a description on http://eagleup.wordpress.com/?s=iges&searchbutton=go%21
              on Importing a STEP or IGES file into Sketchup using FreeCAD and MeshLab.
              file.step => FreeCAD => file.stl => MeshLab => file.dae => Sketchup => file.skp

              Thank you for this information, it works! I already knew meshlab, freecad not...

              1 Reply Last reply Reply Quote 0
              • S Offline
                sepo
                last edited by 4 Mar 2012, 16:46

                I tried to open .igs export from SU in Rhino. It bring geometry but geometry is broken. The model is made of separate surfs and some surfs (curved) are missing.

                1 Reply Last reply Reply Quote 0
                • D Offline
                  DavidVT
                  last edited by 9 Mar 2012, 15:20

                  Nice addition!
                  I am struggling to find the size limit that will work.
                  I have a very complex model the size of an aircraft that seems to lockup everytime.

                  I test this with a small box and it works great.

                  Suggestions???

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    jonorman
                    last edited by 12 Mar 2012, 21:39

                    This plugin is amazing. The possibility to export "solids" out of SU is for me close to the holy grale πŸ˜„ Thank you so much..

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      rainer.ochs
                      last edited by 13 Mar 2012, 18:25

                      @davidvt said:

                      I am struggling to find the size limit that will work.
                      I have a very complex model the size of an aircraft that seems to lockup everytime.

                      @sepo said:

                      I tried to open .igs export from SU in Rhino. It bring geometry but geometry is broken.

                      I do not think, that the size itself is a problem. I usually scale my models in micron so I also have fairly big numbers and this worked fine. I think the problem is more the complexity. To convert from a face-model to solid it is very important that the outer shell has no gaps and no inner geometry. The exporter removes all parts it cannot convert to real shells.

                      Suggestion 1: Try redo to see what the exporter does to the model. If the parts are deleted there it is a problem with the geometry.

                      Suggestion 2: Try HeeksCAD to open the iges. If it is ok there, convert to step and import from there. If it is not ok the iges is the problem. Feel free to send me your model to the email that is given in the code.

                      1 Reply Last reply Reply Quote 0
                      • G Offline
                        gordon_smith
                        last edited by 15 Mar 2012, 13:13

                        I haven't tried the plugin yet, but it is very exciting. This could make sketchup much more useful for me. Where I work the mechanical engineers use Catia, and it would be awseome to be able to send them my drawings in a format that they can use.
                        I also want to second the FreeCad & MeshLabs method as a great way to get IGES files into sketchup. πŸ‘

                        Irrationally held truths may be more harmful than reasoned errors.
                        Thomas Huxley

                        1 Reply Last reply Reply Quote 0
                        • R Offline
                          rainer.ochs
                          last edited by 15 Mar 2012, 22:02

                          @gordon_smith said:

                          I also want to second the FreeCad & MeshLabs method as a great way to get IGES files into sketchup. πŸ‘

                          There is also a direct importer plug-in for stl into sketchup:
                          http://sketchuptips.blogspot.com/2010/03/sketchup-stl-importer-redo.html

                          A direct export to stl can be found at http://www.guitar-list.com/download-software/convert-sketchup-skp-files-dxf-or-stl

                          STL from other formats can be converted with FreeCAD or the above mentioned HeeksCAD.

                          All of these tools do not segment the model into different objects and the exporter does not generate a solid.

                          The importer generates a lot of nasty inner edges, but with a small tweeking of the script this can be fixed.

                          Just add the following lines into main after the import:

                                     
                          a = Array.new
                          Sketchup.active_model.entities.each{|e|
                          if (not e.deleted?) && (not e.hidden?)
                            if e.is_a? Sketchup;;Edge
                               if e.faces.size == 2
                                  if e.faces[0].normal == e.faces[1].normal
                                     a << e
                                  end
                               end
                            end
                          end
                          Sketchup.active_model.entities.erase_entities(a)
                          }
                          
                          
                          1 Reply Last reply Reply Quote 0
                          • A Offline
                            Adrian Berghorst
                            last edited by 20 Mar 2012, 11:38

                            This has helped me a LOT! Thank you very much.

                            1 Reply Last reply Reply Quote 0
                            • R Offline
                              realwarder
                              last edited by 22 Apr 2012, 00:37

                              Great plugin. Helped me. Thank you!

                              My model does export with one problem. If you want the file to test with, let me know.

                              1 Reply Last reply Reply Quote 0
                              • T Offline
                                thomthom
                                last edited by 22 Apr 2012, 07:52

                                @realwarder said:

                                My model does export with one problem. If you want the file to test with, let me know.

                                You need to describe what this problem is. Otherwise it's completely impossible to know what is going on.

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

                                1 Reply Last reply Reply Quote 0
                                • R Offline
                                  realwarder
                                  last edited by 27 Apr 2012, 01:41

                                  @thomthom said:

                                  @realwarder said:

                                  My model does export with one problem. If you want the file to test with, let me know.

                                  You need to describe what this problem is. Otherwise it's completely impossible to know what is going on.

                                  The first problem I was having was a section that was a long PCB cutout shaped with half-circle ends and straight sides was exported as curved sides.

                                  I got around that by manually fixing in the destination CAD.

                                  Current issue is a metric sized drawing is exporting to inches. Not sure how this plugin determines the units.

                                  I.e. my PCB which is 72mm wide, after exporting to an IGS, imports as a 72" wide drawing.

                                  1 Reply Last reply Reply Quote 0
                                  • pilouP Offline
                                    pilou
                                    last edited by 28 Apr 2012, 00:44

                                    I have just found the free Creo element who can reload a cube from this iges export β˜€

                                    Frenchy Pilou
                                    Is beautiful that please without concept!
                                    My Little site :)

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      tmiehle
                                      last edited by 16 May 2012, 13:18

                                      This plugin is great !
                                      I use it with the "EagleUp" script to build 3D models out of PCB layouts.
                                      Now I have one feature request:
                                      Is it possible to generate a list of the components which are buggy?
                                      It is a little frustrating to check the output visually and try to find out which elements are meant by "Model contains non-solid elements" which will not be exported?

                                      Best regards
                                      Tom

                                      1 Reply Last reply Reply Quote 0
                                      • R Offline
                                        rainer.ochs
                                        last edited by 22 May 2012, 17:39

                                        @tmiehle said:

                                        Is it possible to generate a list of the components which are buggy?

                                        During export the model is changed and some parts are deleted as they cannot be exported. After the export the changes are undone, but it is possible with the redo function to see these again.

                                        There is a new version of the plugin where I have further enhanced the checks epecially for EagleUp so less parts are deleted. Now all edges that connect to inner surfaces are deleted, so these inner objects also vanish. Please try V0.7

                                        Rainer

                                        1 Reply Last reply Reply Quote 0
                                        • B Offline
                                          bgtorque
                                          last edited by 7 Jun 2012, 16:58

                                          I've just tried Rainer's plugin (V0.7). It seemed to work quite well with the assembly that I tried it on. There were maybe 50 components, made up of some plates and some terminal lugs that are cylindrical. I imported the iges into CoCreate and all seemed good, dimensionally it checked out. It did take 5 mins or so to convert and then import, but ultimately it did the job!

                                          Thanks and I look forward to any updates that may speed it up a little.

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

                                          Advertisement