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

    Importing .stl files

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

      I posted this topic this morning, but I cannot seem to find it, and so I assume it was affected by the recent bug.

      Does anyone know if there is an IMPORTER for .stl files. I know there is an exporter written by Didier Bur, and was wondering if an importer existed. I am using the free version of Sketchup 6.

      1 條回覆 最後回覆 回覆 引用 0
      • C 離線
        cdubea
        最後由 編輯

        I haven't found one yet. Hopefully there is, but I doubt it. It would be a good tool to get models out of SolidWorks and into Sketchup. At present I export to ACIS files from SolidWorks and then open them in IntelliCAD (DWGEditor which came with SolidWorks) at which point I can save a 3D dwg file which can be read by Sketchup. But these are really not very clean imports.

        Take care,

        chris

        http:www.dubea.orgchris_small.jpg

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

          I havent tried this before, but you could try using blender to imort the .stl and thene xport it as soemthign more SU friendly.

          http://remusrendering.wordpress.com/

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

            Deep Exploration can convert between the formats, but it is not free, costs about the same or more than SU. Luckily STL is supported by the Standard edition, as the CAD version is quite expensive.

            Anssi

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

            1 條回覆 最後回覆 回覆 引用 0
            • W 離線
              watkins
              最後由 編輯

              Dear All,

              Many thanks for all the replies.

              Regards,
              Bob

              1 條回覆 最後回覆 回覆 引用 0
              • Didier BurD 離線
                Didier Bur
                最後由 編輯

                An importer could be quite easy to write (I remember an old Autolisp routine of mine some years ago...). The problem could be the exact format of the STL input: there are binary and ascii formats and within these two kinds of files, sometimes keywords may vary, and scientific notations as well. I used some of these for rapid prototyping and this was (sometimes) a nightmare...
                Please post an sample STL file so I can take a look at it. 🎉

                DB

                1 條回覆 最後回覆 回覆 引用 0
                • GaieusG 離線
                  Gaieus
                  最後由 編輯

                  Post it zippedas the forum may (not may but does) notallow that format.

                  Gai...

                  1 條回覆 最後回覆 回覆 引用 0
                  • Didier BurD 離線
                    Didier Bur
                    最後由 編輯

                    I have published an import STL script here:
                    http://www.sketchucation.com/forums/scf/viewtopic.php?f=153&t=8081
                    It's added to the previous su2stl.rb script.
                    Plugins menu -> Export STL file / Import STL file
                    There are 2 samples for tests in the zip archive.
                    Supported format is the most common STL ascii format.
                    Regards,

                    DB

                    1 條回覆 最後回覆 回覆 引用 0
                    • W 離線
                      watkins
                      最後由 編輯

                      Dear Didier,

                      Thank you so much for all your hard work. I am always amazed by how quickly a request becomes a reality. I will let you know how I get on with the new script.

                      Once again, many thanks,
                      Bob

                      1 條回覆 最後回覆 回覆 引用 0
                      • W 離線
                        watkins
                        最後由 編輯

                        Dear Didier,

                        Just a quick follow up on my previous post.

                        I created a Sketchup model of simple machined/punched shapes (see the attached file), exported the model as a .stl file, then imported back into Sketchup using your new import option. Apart from some minor cleaning up it worked very well. I used the Delete Coplanar Edges script to remove a lot of the redundant lines and then the erase tool to remove the remaining lines. Interestingly, the through circular hole needed re-cutting, while the elliptical hole was just fine. Ah! The mysteries of life!

                        Once again, thanks.

                        Regards,
                        Bob


                        Test_piece.skp

                        1 條回覆 最後回覆 回覆 引用 0
                        • Didier BurD 離線
                          Didier Bur
                          最後由 編輯

                          Hi Watkins,
                          Redundant lines you mention are due to the STL format which only contains triangles (as you probably know) and the re-cutting on some holes are sometimes due to decimal precision (10 e-14 in SU) and in some cases that is not even sufficient. I've encountered from time to time an error message from SU: "Points are not planar" when reconstructing a model from a STL file with this script. Go figure... This is rather stupid because 3 points are always coplanar.
                          Regards,

                          DB

                          1 條回覆 最後回覆 回覆 引用 0
                          • W 離線
                            watkins
                            最後由 編輯

                            Dear Didier,

                            Yes, I knew about the redundant lines issue, but the glich with precision was new. I'm sure this will become a very useful script. I have asked a colleague of mine to create a 3D model in AutoCAD's Mechanical Desktop, and then to export to as a .stl file. I will let you know the results.

                            Thanks again,
                            Bob

                            1 條回覆 最後回覆 回覆 引用 0
                            • C 離線
                              cdubea
                              最後由 編輯

                              In any event, thank you for providing this. Hopefully it's better than the method I was using to get SolidWorks models into Sketchup. I'll test is later today and report back.

                              chris

                              http:www.dubea.orgchris_small.jpg

                              1 條回覆 最後回覆 回覆 引用 0
                              • W 離線
                                watkins
                                最後由 編輯

                                Dear Chris,

                                Let me know how you get on. I use Inventor myself, and would really like an .iges export option for Sketchup. I like to mass model in Sketchup because it is so quick and easy (creative juices and all that).

                                I recently tried importing a Swagelok coupling as a .dwf file (downloaded from the web) and it sort of worked (needed a lot of cleaning up, and the remaking of faces).

                                Regards,
                                Bob

                                1 條回覆 最後回覆 回覆 引用 0
                                • C 離線
                                  cdubea
                                  最後由 編輯

                                  @watkins said:

                                  Dear Chris,

                                  Let me know how you get on. I use Inventor myself, and would really like an .iges export option for Sketchup. I like to mass model in Sketchup because it is so quick and easy (creative juices and all that).

                                  I recently tried importing a Swagelok coupling as a .dwf file (downloaded from the web) and it sort of worked (needed a lot of cleaning up, and the remaking of faces).

                                  Regards,
                                  Bob

                                  I really didn't have much success. Attached is a zip file with a 3d pdf of the part I exported from SolidWorks, the .stl file and the resulting Sketchup file.

                                  You can see the results leave something to be desired.

                                  Thanks

                                  chris


                                  RMH.zip

                                  http:www.dubea.orgchris_small.jpg

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • W 離線
                                    watkins
                                    最後由 編輯

                                    Dear Chris,

                                    As you say, disappointing.

                                    Did you see the link to SpaceClaim posted a few days ago?

                                    http://www.spaceclaim.com/

                                    Regards,
                                    Bob

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • C 離線
                                      cdubea
                                      最後由 編輯

                                      @watkins said:

                                      Dear Chris,

                                      As you say, disappointing.

                                      Did you see the link to SpaceClaim posted a few days ago?

                                      http://www.spaceclaim.com/

                                      Regards,
                                      Bob

                                      I'm familiar with SpaceClaim. Michael Payne was one of the architects of SolidWorks many years ago and left when Dassault Systemes bought SolidWorks. I've been involved with SolidWorks since '96.

                                      The pricing on the LT version is very reasonable. If I'm not mistaken, the pro version is done on a perpetual lease basis. It's a nominal fee up front with an annual fee to use the software.

                                      http:www.dubea.orgchris_small.jpg

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • W 離線
                                        watkins
                                        最後由 編輯

                                        Dear Chris,

                                        Thanks for the additional information. I will request a quote for the LT version and consider using it as a mechanical design alternative to Sketchup. I will check to see if SpaceClaim LT will export .sat, .stp and .igs formatted files.

                                        Regards,
                                        Bob

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • Didier BurD 離線
                                          Didier Bur
                                          最後由 編輯

                                          Hi cdubea,

                                          with rmh.skp, I got the following message in the console:
                                          Error: #<ArgumentError: Not enough points - at least 3 required>
                                          If you open the stl file in a text editor, you'll see that coordinates are given in scientific notation (vertex 4.613638e+000 2.150841e+000 7.951958e-002 for instance). That doesn't disturb Ruby, but values are very small, this may be the problem (with SU autosnap feature I guess).
                                          An intersting test would be to scale your original model by 1000 or 10000, re-export the stl and see what's happening then when importing in SU.
                                          Regards,

                                          DB

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • C 離線
                                            cdubea
                                            最後由 編輯

                                            @didier bur said:

                                            Hi cdubea,

                                            with rmh.skp, I got the following message in the console:
                                            Error: #<ArgumentError: Not enough points - at least 3 required>
                                            If you open the stl file in a text editor, you'll see that coordinates are given in scientific notation (vertex 4.613638e+000 2.150841e+000 7.951958e-002 for instance). That doesn't disturb Ruby, but values are very small, this may be the problem (with SU autosnap feature I guess).
                                            An interesting test would be to scale your original model by 1000 or 10000, re-export the stl and see what's happening then when importing in SU.
                                            Regards,

                                            No problem. I'll give it a try and report back.

                                            chris

                                            http:www.dubea.orgchris_small.jpg

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

                                            Advertisement