PDA

View Full Version : 2022 Adding an element to a sublist



Opie
2023-11-06, 07:41 PM
I have come across a Dynamo script to pull in government data (US) into Civil 3D (https://civilenvoy.blogspot.com/2020/12/civil3d-fema-floodplain-and-epa.html). A few of the URLs are outdated. I'm not looking to fix those at the moment, but it would be nice to update if anyone has that information.

Anyway, I have made some changes to that script to pull in Contours Lines - Large Scale (https://cartowfs.nationalmap.gov/arcgis/rest/services/contours/MapServer/5) data from the National Map service. The service separates the contour paths from the elevations. The contour paths are provided as x and y coordinates. The elevation should represent the z coordinate.

109709

I am able to get the paths in one list, and the contour elevations in a separate list. The issue is for each unique elevation there may be multiple paths.

How can the elevation be added to each vertex (x and y coordinate) in each path?