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!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update

    [Plugin] IGES Export - 27 February 2012

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

      Of course the exporter should not modify the model. It does it during work but afterwards undoes the changes. In V0.4 the undo was made a comment for testing, in V0.5 this is corrected.

      TIG: is there a difference whether I use "model.abort_operation" or "model.commit_operation" and "Sketchup.undo" as I do?

      thomthom: the exporter never was optimized for fast operation, I wanted to keep it simple. As I undo the changes it is no problem to adhere attributes to the entities, they never will be saved. IGES is constantly referring with pointers to its structural elements, keeping track with attributes was simpler to implement and more descriptive. I agree that hashes might be faster. But as the structure is still growing when I am going to implement splines I still prefer the more understandable approach.
      What do you recommend to use instead of "typename"?

      1 條回覆 最後回覆 回覆 引用 0
      • thomthomT 離線
        thomthom
        最後由 編輯

        @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 條回覆 最後回覆 回覆 引用 0
        • Z 離線
          Zacchia
          最後由 編輯

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

          1 條回覆 最後回覆 回覆 引用 0
          • AnssiA 離線
            Anssi
            最後由 編輯

            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 條回覆 最後回覆 回覆 引用 0
            • R 離線
              rainer.ochs
              最後由 編輯

              @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 條回覆 最後回覆 回覆 引用 0
              • R 離線
                rainer.ochs
                最後由 編輯

                @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 條回覆 最後回覆 回覆 引用 0
                • Z 離線
                  Zacchia
                  最後由 編輯

                  @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 條回覆 最後回覆 回覆 引用 0
                  • S 離線
                    sepo
                    最後由 編輯

                    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 條回覆 最後回覆 回覆 引用 0
                    • D 離線
                      DavidVT
                      最後由 編輯

                      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 條回覆 最後回覆 回覆 引用 0
                      • J 離線
                        jonorman
                        最後由 編輯

                        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 條回覆 最後回覆 回覆 引用 0
                        • R 離線
                          rainer.ochs
                          最後由 編輯

                          @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 條回覆 最後回覆 回覆 引用 0
                          • G 離線
                            gordon_smith
                            最後由 編輯

                            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 條回覆 最後回覆 回覆 引用 0
                            • R 離線
                              rainer.ochs
                              最後由 編輯

                              @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 條回覆 最後回覆 回覆 引用 0
                              • A 離線
                                Adrian Berghorst
                                最後由 編輯

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

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

                                  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 條回覆 最後回覆 回覆 引用 0
                                  • thomthomT 離線
                                    thomthom
                                    最後由 編輯

                                    @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 條回覆 最後回覆 回覆 引用 0
                                    • R 離線
                                      realwarder
                                      最後由 編輯

                                      @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 條回覆 最後回覆 回覆 引用 0
                                      • pilouP 離線
                                        pilou
                                        最後由 編輯

                                        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 條回覆 最後回覆 回覆 引用 0
                                        • T 離線
                                          tmiehle
                                          最後由 編輯

                                          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 條回覆 最後回覆 回覆 引用 0
                                          • R 離線
                                            rainer.ochs
                                            最後由 編輯

                                            @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 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 3
                                            • 3 / 3
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement