• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

Export Polygon Points to csv in correct order

Scheduled Pinned Locked Moved SketchUp Discussions
3 Posts 2 Posters 0 Views
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.
  • M Offline
    MLUY
    last edited by 24 Jan 2023, 08:46

    I have asked this question before but I guess its now somewhere on the bottom of the pile and I have not had a response yet 😕 Before I abandon this idea I would like to give it one more try:

    I need to draw polygons (trace a scaled map) and export co-ordinates in the correct order to a csv.
    I found this great plugin from TIG (Export Vertices to CSV), which works fine, except it dumps the coordinates not by following the line segment order. I am trying to read the generated point file into a python script that redraws the polygon for me... but I get quite a mess this way...

    Thanks in advance!
    Michiel

    1 Reply Last reply Reply Quote 0
    • D Offline
      Dave R
      last edited by 27 Jan 2023, 14:48

      What is the "correct order"? How is that determined?

      Etaoin Shrdlu

      %

      (THERE'S NO PLACE LIKE)

      G28 X0.0 Y0.0 Z0.0

      M30

      %

      1 Reply Last reply Reply Quote 0
      • M Offline
        MLUY
        last edited by 30 Jan 2023, 17:11

        @dave r said:

        What is the "correct order"? How is that determined?

        Thanks very much Dave!!, I now realize that it is indeed a bit of a shady definition!
        I just meant that each polygon has a begin and an end-point and the "correct" order is getting the sequential line segments in that order. So for example for a polyline consisting of 3 line segments I would get 4 co-ordinates in order that makes up the polyline:

        x1,y1 start line segment a
        x2,y2 end line segment a, start line segment b
        x3,y3 end line segment b, start line segment c
        x4,y4 end line segment c

        I think this is the only way to rebuild a polyline if all you have are the co-ordinates.

        Regards
        Michiel

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

        Advertisement