Automation of custom profile (user sections) creation workflow - Impossible to select polylines?

We have quite a lot of custom profiles (or user sections) for every project, that we make using the extended modelling workflow. It follows a set of simple steps such as applying fillets, changing layers, inserting reference axes at the corners/midpoints.

With a lot of custom profiles, we want to automate this, by using a single polyline in Advance Steel that we can apply these operations on. But the first and simplest step seems to be impossible in Advance Steel Dynamo: selecting the polyline. It seems like something so simple we might have missed it, but how can we do this?