ShortestWalk Problems

Hi,

I’m having issues getting my shortestwalk component to work. My intent is to create the shortest walk from a bunch of plots of land to the lake (you can see in the base file). I have managed to get a few of the points working however I often seem to be getting error messages saying my end points are the same or it cannot work for certain routes.

I’ve attached the base file and the script if anyone could help me that would be greatly appreciated.

Many thanks,
Fiona

Shortest Walk.gh (18.8 KB)
Basemap.3dm (1.8 MB)

Can’t check your files at the moment as on mobile but try checking that you don’t have duplicate points and/or duplicate lines.
Use CullDuplicate points or Kangaroos CullDuplicateLines components

You should shatter your path curves at every intersections + destination points…

Shortest Walk_re.gh (50.6 KB)

1 Like

Thank you for your help, much appreciated!

I’ve attempted to expand the area of plots and the paths to a bigger area of my map using your script and it appears a bug is blocking the shatter and the shortest walk component is producing the error message again. I’ve tried the suggested removing duplicates but this doesn’t appear to help. Do you have any suggestions?

I’ve attached script and basefile.
Shortest Walk_all.gh (117.2 KB)
basemap2.3dm (9.6 MB)

Thank you!

Hi @grieves5all

What do you mean?

  • Can you post a screenshot of the error?
  • Can you make sure that the paths (Grasshopper datatree paths) of the data are fine?

Thanks

Giulio


Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com