Lisp for chainage / stations along a polyline
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all
I found a lisp for inserting chainages/stations along a polyline, that I would like get improved. The lisp can be found here:
If anyone knows how to edit the code to incorporate any/all of the following prompts when executing the lisp, that would be super helpful! Ideally it should run not only on Polylines but also on 2D and 3D Polylines.
So after installing the lisp and typing in „CHAINAGE“ or whatever the lisp is to be called, the following prompts would be ideal:
- Select Polyline, near start-chainage point (this ability would negate the need to check which direction the polyline runs in, to avoid having your Start-chainage at the wrong end of the polyline
- Enter start chainage [0+000] (in case for whatever reason the user can choose to start the chainage text at any desired number at the start of the polyline. If the user needs the start of the polyline to begin at chainage 45,123.150 (to be shown on the page then as 45+123.150) then he should just need to type in here 45123.15. So the 2nd marker would be at the round 45+130
- Interval [10.0 Standard]
- Number of decimals [0/1/2/3]
- Position Left or Right of polyline? [L/R]
- Text offset from Polyline [5.0] (Text/Chainage should be positioned standard 5 units left/right of the line, can be increased/decreased here as desired)
- Text size [1.0]
- Text perpendicular to polyline? [Y/N]
- Insert Marker as Tickline or Circle or No marker? [Tick]
(if T/C is selected…) → Size of Marker [1.0] (only gets asked if T or C is selected in the previous prompt)
→ Scale of Marker [1.0] (in this case, the standard 1.0 = radius of circle / length of tick-marker) - Insert extra chainages at all nodes? [No]
(if Yes selected…) → Number of decimals for node-chainages [0/1/2/3]
→ Separator [. or ,] (in some European countries, the decimal separator is a comma, so this option would be great! Otherwise standard with comma would be preferred)
Here's an example of the textual outputs I would expect to see running such a lisp:
0+000 (Start point standard 0+000)
0+010
0+017,123 (first node)
0+020
…
0+990
1+000
1+010
I also have looked at the options provided here: http://www.gilesdarling.me.uk/lisproutines.shtml#chmark
But although impressive, is not quite what i need, and I'm not at all experienced enough at lisp code to amend an existing lisp to suit my above desires.
Any help muchly appreciated!