I have 10 lines and i want to generate points per 10 and 100 meters for each one of them. In ArcGis there is the tool construct points(COGO) but is not scriptable. Is there any suggestion? Also i don't want to be saved in memory but in Hard disc, also i don't have the points i want to create them, with a loop, for several lines (10).
I have a Create Points on Lines toolbox I made that should work for you.
You can download it here:
Here's the script:
Here's a screenshot of the parameters:
You'll want to use the Type of INTERVAL. For the interval value, if your coordinate system is in meters, then you just put 10, or 100. But, if it's not in meters you'll need to do the conversion beforehand- depending on what units your coordinate system is based.
The python way of doing it would be to use a a search cursor to get the feature length and the xy position along the line using this method:
Loop would be defined by feature length and grabs xy pair values per step 10 or 100 (adding distance to the distanceValue variable for each step increase and writing those found xy pair values to the geometry of a new point feature class using a insert cursor.