Select to view content in your preferred language

Issues using generate points along line tool in arcpy, HELP.

466
2
11-14-2024 09:45 AM
LukeStork
New Contributor

I am trying to use arcpy to shorten my workflow. I am attempting to use the tool to place one point every 100 meters along the line, I have done this manually using the tool many times but when I try to use the tool in arcpy I keep receiving the same error message. 

ERROR 000628: Cannot set input into parameter Percentage.

 Most suggestions I found said to make sure the spatial reference was in meters which I verified:

Spatial Reference: WGS_1984_Web_Mercator_Auxiliary_Sphere
Units of input: Meter

I am confused that the tool is working manually but not in my script, any tips? Help would be greatly appreciated.

0 Kudos
2 Replies
DrewDowling
Frequent Contributor

Can you post your code?

 

LukeStork
New Contributor

I ended up just avoiding the points along the lines tool altogether to avoid this problem and ended up with something functional. Thanks for your reply anyway Drew!

0 Kudos