Select to view content in your preferred language

Iterating Bearing Distance to Line using ArcGIS Notebooks

920
3
12-18-2022 11:41 PM
KedaravindanBhaskar
Regular Contributor

Hi,

I am trying to write a for loop that iterates line generation for 4 compass directions, using the "Bearing Distance to Line" tool on ArcGIS Notebooks.

Bascically, I want to input 4 fields into the line "Bearing field". I have stored the 4 fields in a list named "Dirfields". I'm trying to use this list as an input for "Bearing Field".

Any idea on how can I achieve this workflow? I have attached a photo of the Bearing Distance to line dialog box and  an excerpt from my script. Please let me know if there is anything else I can provide.

Thank you

0 Kudos
3 Replies
DanPatterson
MVP Esteemed Contributor

In your first link, the second part

DiFields shouldn't that be DirFields ?

 

Format your code to help others be able to help you

Code formatting ... the Community Version - Esri Community


... sort of retired...
0 Kudos
KedaravindanBhaskar
Regular Contributor

Yes Dan it should. Thanks for the input.

I still would like to know how to use the list as the input for the "Bearing field" so I can achieve iteration.

0 Kudos
KedaravindanBhaskar
Regular Contributor

I will also repost after fixing the post to the abide by the guidelines....many thanks.

0 Kudos