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

    Importation Arc, Circle, from Autocad

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    14 Posts 6 Posters 1.1k Views 6 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.
    • T Offline
      tomsdesk
      last edited by

      I'd like to know that too...meanwhile, I first thing after import select each of the curves/circles and change the number of segments in the entity info toolbar.

      http://www.tomsdesk.moonfruit.com/
      2.5D Trees & Shrubs!

      1 Reply Last reply Reply Quote 0
      • pilouP Offline
        pilou
        last edited by

        @unknownuser said:

        change the number of segments in the entity info toolbar.

        Yes πŸ˜„ That is easy when you have few "polylines", but what about when you have thousand? πŸ˜‰
        And the little problem is the arcs are not yet "arcs" but just a curve! πŸ˜’

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

        1 Reply Last reply Reply Quote 0
        • pilouP Offline
          pilou
          last edited by

          And this is some hard for many curves πŸ˜’


          bof.jpg

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

          1 Reply Last reply Reply Quote 0
          • P Offline
            PRSS
            last edited by

            Imported AutoCAD curves is always hell in sketchUP. Better to model the curves in SU itself. Also if you have too many curved surfaces, then importing in SU, I have found there are problems with other surfaces also. Even the boxes behave strangely. The surfaces start flickering when you orbit the model.

            With best regards
            PRSS

            1 Reply Last reply Reply Quote 0
            • L Offline
              lucifer1101
              last edited by

              you could try just replacing the curves with sketchup arcs

              Some of my 3d

              1 Reply Last reply Reply Quote 0
              • Chris FullmerC Offline
                Chris Fullmer
                last edited by

                I think it should be easy enough to write a scrupt that would go through the model and globally change the segment count of all arcs and circles. It might even be possible for it to try and change the segment count to try and make all segments be within a certain length tolerance. For example, you want them to all have 1 foot (or 30cm) lengths. A scriput could go through and find all arcs and circles and attempt to change their segment count to make it so each segment was close to that length.

                However, there might be a LOT of secondary problems with that, with changing geomtery around. It might cause problems. But who knows, maybe it would all be fine.

                Chris

                Lately you've been tan, suspicious for the winter.
                All my Plugins I've written

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

                  arcs=[];entities.each{|e|arcs.push(e.curve) if e.typename=="Edge" and e.curve and e.curve.typename=="ArcCurve" and not as.include?(e.curve)};arcs.each{|e|puts e; puts e.edges.length}
                  

                  This makes an array of all ArcCurves [ignores other curves] and reports the number of segments each has...

                  Now someone else's turn to remake these with more segments...

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • pilouP Offline
                    pilou
                    last edited by

                    @Tig
                    I put this in the Ruby Console or it's for put inside a plugin script?
                    What about circles?

                    Here an Autocad file with arcs

                    No problem in SU (Podium)
                    but seems problems in exportation via SU (SKP)--> DoubleCadXT (DXF) -->Blender


                    test tomate.rar


                    voute.jpg

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

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

                      The code is a 'snippet' [extrait?] that could form the start of a bigger script. It just makes an array of the ArcCurves in the model that you could use later: it also prints out the list of them with numbers of edges in the Ruby Console (just to see it working). I don't think I have the time to expand the idea... the next step is to iterate through the list of ArcCurves and increase the number of segments that each one has, up to a bigger number - so perhaps 24 for circle or 12 for arc become 96...

                      You can up the segments in an arc using 'Entity Info' but scripting it is bit more tricky...

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • pilouP Offline
                        pilou
                        last edited by

                        So I am waiting that a tricky guy use your "snippet" because I am not a scripter πŸ˜’

                        PS yes "extrait" is perfect word for that πŸ˜‰

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

                        1 Reply Last reply Reply Quote 0
                        • Chris FullmerC Offline
                          Chris Fullmer
                          last edited by

                          @tig said:

                          You can up the segments in an arc using 'Entity Info' but scripting it is bit more tricky...

                          Yeah, unfortunately I didn't realize BEFORE I suggested a ruby could be written. I thought there was a my_arc.segments= 100 method - NOPE. Bummer. It is still possible, just not simple. I won't be getting around to this soon either I'm afraid.

                          Chris

                          Lately you've been tan, suspicious for the winter.
                          All my Plugins I've written

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

                            There's an arc.set_segments= 100 now...

                            http://www.sketchucation.com/forums/scf/viewtopic.php?p=158903#p158903
                            πŸ˜„

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • pilouP Offline
                              pilou
                              last edited by

                              Seems all works fine! πŸ˜‰
                              See same thread above β˜€

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

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

                              Advertisement