The use of detailed wheel/rail contact models has long been frustrated by the complicated preparations needed, to analyse the profiles for the local geometry and creep situation for the planar contact approach. A new software module is presented for this that automates the calculations in a generic way. Building on many components developed by others, this greatly simplifies the running of CONTACT for generic wheel/rail contact situations. Fully 3-d contact search algorithms are implemented. This uses the contact locus approach, that's simplified for wheel-on-rail situations and extended to wheel-on-roller contacts. A main characteristic of the new module is its extensive use of the multibody formalism, using markers to represent coordinate systems, using a newly designed, generic, object oriented-like software foundation. The contact geometry is analysed twice; first for the location of contact patches, and then for the local geometry of the contact patches. The contact search starts from profiles in their actual, overlapping positions. This yields the extent of interpenetration areas as needed for the potential contact definition. Different strategies may be employed for the tangent plane needed in the planar contact method. Creepages are formed automatically using rigid body kinematics, including wheel and track flexible bending. Numerical results illustrate the viability, generality, and robustness of the approach. The extension to conformal contacts is presented in an accompanying paper.