A spatial discretization and substructure method is developed to calculate the dynamic responses of one-dimensional systems, which consist of length-variant distributed-parameter components such as strings, rods, and beams, and lumped-parameter components such as point masses and rigid bodies. The dependent variable, such as the displacement, of a distributed-parameter component is decomposed into boundary-induced terms and internal terms. The boundary-induced terms are interpolated from the boundary motions, and the internal terms are approximated by an expansion of trial functions that satisfy the corresponding homogeneous boundary conditions. All the matching conditions at the interfaces of the components are satisfied, and the expansions of the dependent variables of the distributed-parameter components absolutely and uniformly converge. The spatial derivatives of the dependent variables, which are related to the internal forces/moments, such as the axial forces, bending moments, and shear forces, can be accurately calculated. Assembling the component equations and the geometric matching conditions that arise from the continuity relations leads to a system of differential algebraic equations (DAEs). When some matching conditions are linear algebraic equations, some generalized coordinates can be represented by others so that the number of the generalized coordinates can be reduced. The methodology is applied to moving elevator cable-car systems in Part II of this work.