sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Terrain data conversion to a xyz-file

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    19 Posts 4 Posters 4.0k Views 4 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.
    • charly2008C Offline
      charly2008
      last edited by charly2008

      Hello SCF-Members,

      I found a software, Diolkos-Road design. This software is able to read terrain data as xyz-files or dxf. There is also a trial version. In the Kerkythea xml file which was exported from Sketchup i saw there are the terrain data as a list of xyz points existent. A number of CAD programs work with .XYZ files which are comma delimited text files containing just xyz coordinates of points in space.

      Does anybody have an idea how to convert this data to a dxf or xyz-file which can be read by CAD. So may be it would be possible to modify a terrain or road with this software.

      I did a test, i copied the xml data to a text file and renamed it to a xyz file before i inserted commata as spacings.

      Then i tried to open it with the Diolkos Software. The Read point process asks for three xyz-positions. I'm not shure what has to be inserted. When i apply the predifined values it reports "Erase 575 double points" and nothing happens.

      Karlheinz

      software link: http://www.diolkos3d.com/diolkos_in_brief_en.htm


      xyz data.jpg


      xyz data1.jpg


      xyz data2.jpg


      xyz data3.jpg

      He who makes no mistakes, makes nothing

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

        The website says it can import (more exactly it says "Exportation from/to...") DXF as well. As I see, you have SU Pro,why don't you export your mesh in dxf (after all, that's also a text file)? (Or I don't understand your question).

        Also, you can export collada (*.dae) from SU which is again an xml (text) file with the necessary xyz co-ordinates.

        Gai...

        1 Reply Last reply Reply Quote 0
        • charly2008C Offline
          charly2008
          last edited by

          Hi Gaieus,

          I tried to open a from Sketchup exported DXF with this program but i got the message "no points insertion found". I think in the exported dxf there are missing data which the program needs to interpret it as height points. Sorry about my english

          KARLHEINZ

          He who makes no mistakes, makes nothing

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

            Ah,I see. From SU you could only export a mesh but not something that CAD uses as height points (which would come into SU as guide points upon import for instance).

            And what if you export your skp model to dxf (or dwg),open it in some CAD app and generate the height point data from that (if possible)?

            Gai...

            1 Reply Last reply Reply Quote 0
            • charly2008C Offline
              charly2008
              last edited by

              for that it would be necessary to have a 3D CAD Software i suppose, but the problem is that i don't have a 3D CAD software.

              Karlheinz

              He who makes no mistakes, makes nothing

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

                Well, me neither. 😳

                Gai...

                1 Reply Last reply Reply Quote 0
                • charly2008C Offline
                  charly2008
                  last edited by

                  Hi TIG,

                  thank you very much. Your AddVertex works fine. Now i will try to get the dxf into this Rod design software mentioned above.

                  Karlheinz

                  He who makes no mistakes, makes nothing

                  1 Reply Last reply Reply Quote 0
                  • charly2008C Offline
                    charly2008
                    last edited by

                    The import of the created dxf worked. Contour lines were created. But the statistic say there are a average of heights (m): 0,00. I exported a xyz file and there are it seems also z-values. ❓ I'm a little bit confused now.

                    Karlheinz


                    Bild1.jpg


                    Bild2.jpg

                    He who makes no mistakes, makes nothing

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

                      What units were you working in ? If it's not metres then try changing to mm (Model Info >> Units) before exporting the dxf - it looks like the application receiving the dxf wants it in 'mm'...

                      DXFs are effectively 'unit-less' - whatever the numbers are in it they are assumed to be the units that are used for the resultant dxf/dwg... so if a 'dimension' is given as 1234 it could be 1234 m or mm or inches or etc...

                      Try importing the dxf back into SUp and see if it's like it went out - scale it by 1000 and repeat etc ?

                      It's difficult to fix this without more details...

                      TIG

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

                        You can export a dxf file containing just 'construction geometry' - see options button on export dialog. To get cpoints at every vertex of a selected mesh use a tool like my AddVertex+ ruby script. It will add a cpoint to every selected edge's vertices. Then export this as a dxf...

                        In reverse Didier Bur has several tools for importing xyz data into SUp as cpoints and then triangulating them...

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • charly2008C Offline
                          charly2008
                          last edited by

                          Hi TIG,

                          in Sketchup i'm working with meters. The triangulation program works also in meters. I tried your advices but without success. It seems that this program needs a reference point to calculate the height. When i inserted a point in the 3D space in sketchup then a average height of 3012 m is shown but the triangulation is messed up. If you need more information please ask.

                          Karlheinz


                          GEO128.jpg


                          GEO1281.jpg

                          He who makes no mistakes, makes nothing

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

                            Have you added a cpoint at the origin to see if that helps ?
                            What is the problem exactly ? It's clearly making a surface. Is it making things too small or too big, or wrong in one direction like Z heights ?
                            Unfortunately I don't know this program you are trying to import in to...

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • charly2008C Offline
                              charly2008
                              last edited by

                              The idea was to export the terrain into this Diolkos road design software for designing the road contour and afterwards bringing the terrain back into sketchup for further modelling. This software seemed to be simple to work with but it isn't. May be i will find a simple 3d Software where i can do that works.

                              Karlheinz

                              He who makes no mistakes, makes nothing

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

                                If it's making a surface that's 'right' but perhaps scaled in some axis wrongly then you can still import it into SUp and scale the resultant component in that axis and relocated the mesh to suit ?

                                Alternatively model the road in plan 'flat' in SUp, keep it in a group so it doesn't clash with other things, divide it into areas that will have equal slopes, group each bit, rotate the bits about the junction edges, to the required falls and then move them to snap together at common edges to suit, explode them inside the single group, place the group above the surface-copy where you want the road, use the sandbox/stamp selecting the group and the thing will stamp onto the surface with embankments and cuttings [set its 'offset' to say 3m, if the likely cut/fill is 1m], adjust height of whole lot in Z and the cut/fill adjust with that... move the group out of the way and work on the surface-copy...
                                You now have a3D road with cut/fill on the surface ?

                                TIG

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

                                  You can use the basic version (1.2.250) of this software:

                                  Link Preview Image
                                  TopoCal 2024: Software CAD y Topografía Profesional desde 229€

                                  TopoCal 2024: Software profesional de CAD y topografía por solo 229€. Compatible con AutoCAD y ZWCAD, ideal para replanteo, perfiles y cálculos topográficos avanzados.

                                  favicon

                                  (www.topocal.com)

                                  Link Preview Image
                                  TopoCal - Descargar

                                  TopoCal, descargar gratis. TopoCal última versión: Cálculo topográfico del Modelo Digital del Terreno (MDT).

                                  favicon

                                  (topocal.softonic.com)

                                  Sorry... in spanish. It's for windows, a bit old. You can import any text file, triangulate, and export it to dxf.

                                  Forgive my spanglish...

                                  1 Reply Last reply Reply Quote 0
                                  • charly2008C Offline
                                    charly2008
                                    last edited by

                                    Thank you Pichuneke,

                                    the program looks interesting. I tried to install it but anything was wrong. Unfortunately i don't speak spanish so i couldn't read the messages given at the installation.

                                    Karlheinz

                                    He who makes no mistakes, makes nothing

                                    1 Reply Last reply Reply Quote 0
                                    • charly2008C Offline
                                      charly2008
                                      last edited by

                                      Hi TIG,

                                      in such a terrain it is nearly impossible to get a good result with that method. I will try it again with the steps i described in the quick road tutorial. It is much more work but the result looks better.

                                      Karlheinz


                                      GEO128.jpg


                                      Road.jpg

                                      He who makes no mistakes, makes nothing

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

                                        @charly2008 said:

                                        Thank you Pichuneke,

                                        the program looks interesting. I tried to install it but anything was wrong. Unfortunately i don't speak spanish so i couldn't read the messages given at the installation.

                                        Karlheinz

                                        When you start it you must check the box, a message appears that says "Enviaré mis comentarios al foro cuando pueda" (I will send messages to the forum when I can). Don't worry, it's a bit absurd, but the software doesn't connect to internet.

                                        Menu:

                                        Archivo -> Importar -> Ascii (File -> Import -> Ascii). Select the extension of the file (.pun , .xyz , .dat , .txt, .csv...)

                                        A menu appears. You have a box with something like NXYZC (Name, X Coordinates, Y Coordinates, Z Coordinates, Comments). It's self-explanatory.

                                        At left, you have to select the separator: , comma, space, tabulation, columns...

                                        At right:

                                        El separador decimal es una coma: Decimal separator is a comma.

                                        El separador de miles es un punto: Thousands separator is a point (like 2.009).

                                        Click on Importar.

                                        On Menu: Click on MDT -> Triangular...

                                        Maxima diferencia de los lados: Maximum distance between generated triangle, test with bigger values if you have some problems. Click Aceptar.

                                        Fix Manually the problems with the triangulation with: MDT -> Permutar. Click on the green lines, you can see the model changing its shape.

                                        When finished:

                                        Menu: Archivo -> Exportar -> Dxf(3D)

                                        This is a fast guide. Sometimes I add manually points to get better results, the program can interpolate the Z coordinate or a Z value inserted manually.

                                        Forgive my spanglish...

                                        1 Reply Last reply Reply Quote 0
                                        • charly2008C Offline
                                          charly2008
                                          last edited by

                                          Hi Pichuneke,

                                          thanks for your efforts but i couldn't install the program. Do you have some screen shots from works you have done with this program? to give me an impression.

                                          Karlheinz

                                          He who makes no mistakes, makes nothing

                                          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