Design of a transport line with highly restrictive space and beam size requirements and with flexibility in the orientation of the injector is presented. An analytic method, based on symbolic algebra is used to find optimal regions of the design parameters. The fine tuning of the parameters were then performed with a standard matrix program. Special interest was paid to the question of dispersion vector matching large angle bend with very small bending radius using non-iron bending magnets with very small gap area.