Sweep using rails with corners

 From:  Steve (STEVEMACC)
957.5 
The rail revolve looks OK except that it scales the profile depending on how far the edge is from the centre of revolution.