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

    Autocad height points to SketchUp question

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    10 Posts 3 Posters 1.3k Views 3 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.
    • PixeroP Offline
      Pixero
      last edited by

      We have an Autocad file with points for heights that seem to be text objects. (If we click on it in Autocad it says it is text and you can delete the + sign, but its positioned like a point in space.)
      When imported into SketchUp they are not transfered and when exploded they become flat in Z axis.
      Does anyone know how to convert these "text points" into dem, x,y,z or anything that can be imported into SketchUp so that we can create a surface with Toposhaper or other plugin?

      1 Reply Last reply Reply Quote 0
      • srxS Offline
        srx
        last edited by

        Are you sure there is no point (is PDMODE set to 0)? Is it too hard to add points in AutoCAD?

        www.saurus.rs

        1 Reply Last reply Reply Quote 0
        • PixeroP Offline
          Pixero
          last edited by

          We managed to solved it with a lisp script to turn text into points in AutoCAD. When importing into SketchUp we got it in as SketchUp points.
          However Toposhaper didn't work with the points. I just got a ! in a error popup. Managed to get a triangulated surface by using a script by TIG so all is well but I'm still curious why Toposhaper didn't work. The "!" doesn't say much about why it didn't work.

          1 Reply Last reply Reply Quote 0
          • filibisF Offline
            filibis
            last edited by

            @pixero said:

            We managed to solved it with a lisp script to turn text into points in AutoCAD. When importing into SketchUp we got it in as SketchUp points.
            However Toposhaper didn't work with the points. I just got a ! in a error popup. Managed to get a triangulated surface by using a script by TIG so all is well but I'm still curious why Toposhaper didn't work. The "!" doesn't say much about why it didn't work.

            I'm not sure but it's probably TopoShaper only accepts contour lines to work with.
            toposhaper.jpg
            I'm curious about the script you used and export worfklow in Autocad, could you please share?

            1 Reply Last reply Reply Quote 0
            • PixeroP Offline
              Pixero
              last edited by

              It says it can do points as well...
              topo_points.jpg

              1 Reply Last reply Reply Quote 0
              • filibisF Offline
                filibis
                last edited by

                Oh, my bad then. Used only contours with this plugin in the past.


                Did you have a look at this topic?
                It works for me. Make sure the point cloud is 'groupped' like this. Otherwise it gives '!' error
                topo_point.JPGtopo_point_2.JPG

                1 Reply Last reply Reply Quote 0
                • PixeroP Offline
                  Pixero
                  last edited by

                  Thanks, it was probably that it wasn't grouped. I'll get back about the lisp script solution. Have to finish a presentation right now.

                  1 Reply Last reply Reply Quote 0
                  • PixeroP Offline
                    Pixero
                    last edited by

                    Here's how we solved it in AutoCad.

                    ` ; 2017-05-17
                    ; load with: appload
                    ; run with: CONVERT_TEXT_TO_POINT
                    ; chose to use Koord or Value

                    (defun C:Convert_Text_to_Point (/ ss Z_value temp koord)
                    (if (setq ss (ssget "_:L" '((0 . "Text"))))
                    (progn
                    (initget "Koord Value")
                    (setq
                    Z_value (getkword "\nTake Z from [Koord/Value]? <Value>:")
                    Z_value (if Z_value
                    Z_value
                    "Value"
                    )
                    ss (vl-remove-if-not
                    '(lambda (x) (= (type x) 'ENAME))
                    (mapcar 'cadr (ssnamex ss))
                    )
                    )
                    (foreach item ss
                    (setq temp (entget item)
                    koord (cdr (assoc 10 temp))
                    koord (if (eq Z_value "Value")
                    (list (car koord)
                    (cadr koord)
                    (atof (cdr (assoc 1 temp)))
                    )
                    koord
                    )
                    )
                    (entdel item)
                    (entmakex
                    (list
                    '(0 . "POINT")
                    (cons 10 koord)
                    )
                    )
                    )
                    )
                    )
                    )`

                    Copy the code above and save as "text-to-points.lsp"
                    In AutoCad, type: appload to load the script.
                    Select the text you want to convert to points.
                    To run the script type: CONVERT_TEXT_TO_POINT
                    Chose to use Koord (K) or Value (V).
                    After its been converted to points you can save as a dwg and import into SketchUp then use Toposhaper or TIGs script to create triangulated surface from points.
                    As you said the points need to be grouped to work with Toposhaper.
                    Hope this helps.

                    1 Reply Last reply Reply Quote 0
                    • srxS Offline
                      srx
                      last edited by

                      Thanks for the script. 😄

                      www.saurus.rs

                      1 Reply Last reply Reply Quote 0
                      • filibisF Offline
                        filibis
                        last edited by

                        Thank you Pixero. 👍

                        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