I created a script to add superelevation data as offset profile cross slope values, but it is acting strangely:
- Works perfectly on the outer offset alignment (that is longer than the centerline) if start station is 0+000
- Gives “parameter station outside profile range” error on the inner offset alignment (that is shorter than the centerline) regardless of start station. Does not find end station.
- If the start station is not 0+000, after a successful run (all python script variables give correct values) the station values are the double the correct values in the offset profile properties window.
So I have two major issues:
- If the offset alignment is shorter, than the parent, for some reason it doesn’t recognise parent’s last station. Tried this manually as well, but it doesn’t accept last point either, but this one doesn’t make sense to me.
- If start station of the parent is not 0+000 the srcipt works as intended, but the actual cross slope station values are doubled. If I substract start station of the values I get “parameter station outside profile range” of course.
I don’t know if there is something with my beginner pyton script, or is it an API issue, and I should rather post it to the Autodesk forum.
Has anyone met this issue? I attached a sample dwg containing all cases, and the dyn as well.
Offset superelevation.dwg (1.3 MB)
Offset superelevation.dyn (160.0 KB)