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

    [Tutorial] Create a (TIN) from Surveyed Pts - using SU only

    Scheduled Pinned Locked Moved SketchUp Tutorials
    sketchup
    32 Posts 15 Posters 26.6k Views 15 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.
    • GaieusG Offline
      Gaieus
      last edited by

      Yes, most probably.

      Now create a bunch of construction points, select them and run the script.

      Gai...

      1 Reply Last reply Reply Quote 0
      • GaieusG Offline
        Gaieus
        last edited by

        How big is that file?

        Gai...

        1 Reply Last reply Reply Quote 0
        • tinanneT Offline
          tinanne
          last edited by

          This is great information. I could have really used this last month when I was pulling my hair out tracing contour lines and raising each individual line AND THEN trying to mesh them together!

          This is great!

          Executive Director : American Society of Architectural Illustrators
          AIP 30 Competition opens soon. ASAI.org

          Architectural Rendering

          1 Reply Last reply Reply Quote 0
          • GaieusG Offline
            Gaieus
            last edited by

            James,

            I have sent you an email, please, confirm the delivery...

            Gai...

            1 Reply Last reply Reply Quote 0
            • GaieusG Offline
              Gaieus
              last edited by

              @unknownuser said:

              My problem was that the cad file didn't show up when imported πŸ˜’.

              Yes because all the Layers were turned off and nothing was on Layer0 πŸ˜†
              I could hardly find those crosses anyway.

              But now you are really in big problem because moving those points to the proper height will be very tedious. There are some 1800 of the (or 1300?) altogether. And you'll need to re-run the script too.

              Gai...

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

                Have you had any joy? I'm in exactly the same boat. A number of spot heights (not quite 1300 though!) all in 2d, trying to create an accurate terrain in sketchup

                1 Reply Last reply Reply Quote 0
                • GaieusG Offline
                  Gaieus
                  last edited by

                  Can you not get the xyz coordinates as just a data file? Those guys must have worked with something as well!

                  Gai...

                  1 Reply Last reply Reply Quote 0
                  • AnssiA Offline
                    Anssi
                    last edited by

                    Depending on the type of the information in the DWG, it might not be very difficult to write an AutoLisp routine that would scan a DWG file for points or text entities, and replace them with some small geometric entity (a line, or cross etc.)at the correct height, that could be imported into SU and sandboxed into a TIN.

                    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
                    • J Offline
                      jmqrsq
                      last edited by

                      @unknownuser said:

                      Scripts reqd:
                      points_cloud_triangulation.rb
                      delauney2.rb
                      Work together - get latest versions
                      Download from here:
                      http://www.crai.archi.fr/RubyLibraryDepot/Ruby/RUBY_Library_Depot.htm
                      Thank you Didier.

                      I have tried to download the delaunay2.rb script but the links do not work anywhere. can someone send it to me? i can provide an email addy. thanks!

                      1 Reply Last reply Reply Quote 0
                      • AnssiA Offline
                        Anssi
                        last edited by

                        @unknownuser said:

                        So ur saying Anssi that a 2D drawing with points, which is what I have, could be changed into a 3D drawing. That would save alot of work. Can that be done? The Z value would have to be added to each point though, and there are 1300! πŸ˜’

                        It depends on how the 3D information is displayed in the file. For instance, I have seen many site surveys with the height information as simple text objects strewn around the map, or the height is in an attribute of a block. In both these cases it is possible to grab the 2D coordinates of the object, and use the text contents for the Z information, and draw something there that is importable to SU. A sort of "unflatten" operation. Of course the requirement is that the information is there in some consistent form.

                        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
                        • GaieusG Offline
                          Gaieus
                          last edited by

                          @jmqrsq said:

                          I have tried to download the delaunay2.rb script but the links do not work anywhere. can someone send it to me? i can provide an email addy. thanks!

                          There is a confusion (probably due to a typo somewhere) because this script sometimes is referred as "delaunay.rb" while other times as "delauney.rb".

                          Here is a post where lapx aslo asked for the delauney.rb (which I believe the proper name is) and I posted a copy of it.
                          Try that, hope it works.

                          Gai...

                          1 Reply Last reply Reply Quote 0
                          • E Offline
                            eugenesr
                            last edited by

                            Here is the file location of the script:
                            http://www.crai.archi.fr/RubyLibraryDepot/Ruby/delaunay.rb
                            http://www.crai.archi.fr/RubyLibraryDepot/Ruby/delaunay.rb

                            and here is the Ruby Script Index page http://www.crai.archi.fr/RubyLibraryDepot/Ruby/

                            Eugene

                            /Fire Fighter! Funny job for an artist, no?/
                            HP laptop running XP

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

                              Not been able to check on this for a while....

                              I've had a look at the drawing full of spot heights that I have and they are all at the correct z value....however, it is just text, not crosses etc.

                              Is there a quick way to create these crosses where the text is? I had a look at that autolisp, it looks mind boggling!

                              1 Reply Last reply Reply Quote 0
                              • AnssiA Offline
                                Anssi
                                last edited by

                                This might be a bit OT as you need AutoCad...

                                I took an old Autolisp program I once made and modified it to do this:

                                Scan a selection for text entities. Read the text and convert it to a number and multiply it with an user supplied factor (for unit conversions). Draw a line from the text insertion point to the text upper right corner, using the text as the Z height of the line endpoints. Repeat until all texts in the selection have been processed.

                                The result should be a cloud of small lines that the SU Sandbox from Contours tool can cover with a surface.

                                How it works:

                                • copy the txt23d.lsp file somewhere where Autocad can find it. It should work if put in the same directory as the drawing file to process.
                                • type (load "txt23d") to the AutoCad command line and press Enter
                                • type txt23d and Enter
                                • It asks the user for a selection
                                • It asks the user for a Z scale factor

                                Disclaimer: The lisp has almost none error checking. Scale factor should reset itself to 1 if you forget to give one. It's not rocket science - the real height point may be not exactly at the text insertion.

                                Anssi

                                TXT23D.zip

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

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

                                  That did the job! Thanks so much for that. Just got to find the time to put the guide points into SU and it should be sorted.

                                  Cheers again

                                  1 Reply Last reply Reply Quote 0
                                  • R Offline
                                    Rob D
                                    last edited by

                                    I could really, really, really do with that lisp script... but only have acad LT 😒

                                    1 Reply Last reply Reply Quote 0
                                    • V Offline
                                      VicBStard
                                      last edited by

                                      How do I get a spreadsheet or comma separated x,y,z points into SU without having to actually position points manually? Is there a way to automate this?

                                      Cheers

                                      1 Reply Last reply Reply Quote 0
                                      • GaieusG Offline
                                        Gaieus
                                        last edited by

                                        Hi,

                                        Sure, use Didier's Cloud plugin; works great.

                                        Gai...

                                        1 Reply Last reply Reply Quote 0
                                        • M Offline
                                          messire
                                          last edited by

                                          Hi all
                                          Its getting confusing: the script is installed and delaunay2 installed.
                                          The file is imported from an autocad file with simple points that i put in Z coordinates in acad.
                                          When imported in SU they appears as little crosses ( cannot succeed in zooming on them to see exactly), and when i try to triangulate them, the ruby says " Some objects of the selection aren't construction points". How is this possible since they are all similar and all points?
                                          Nothing happens then..

                                          Is there any way i can resolve this?
                                          I've put a sample from points ( acad) here if anyone has a hint!
                                          http://dl.dropbox.com/u/2095112/3Dpoints.dwg

                                          thnx
                                          Nils

                                          1 Reply Last reply Reply Quote 0
                                          • M Offline
                                            messire
                                            last edited by

                                            Good lord!
                                            I've found it!
                                            3D points from surveyors are often blocks in acad. When i imported them, i forgot that, and they were in SU still components!.
                                            A simple select all + explode solved the issue and made it possible to triangulate!

                                            Relief!

                                            Sorry for the buzz!
                                            N

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

                                            Advertisement