Creating a profile along a railway track

Hi,

I want to create a profile along a railway track element.

One way I have already done it is to import a premade CAD model as a primitive. However, I was wondering if any of the follwing ways is possible. I have looked into them but did not find a solution:

  1. Using a sweep primitive with an open contour path. I could not get a contour file (.su2) to have multiple different radii; in addition I am not sure how I would handle vertical sections. Is it even possible to define a sweep along an arbitrary path?
  2. Using something like a RWC rail element. Rail elements follow the track naturally, however, they are not hollow but solid and they are limited regarding their shape.

Are there any other ways I could try this or are did I use e.g. the sweep not properly?
Maybe I could use a User Routine for that?

 

I am happy for suggestions! Thank You!