Current railway infrastructure maintenance work, which is mostly carried out by visual inspection, has a reactive approach, dissociated information, and limited follow-up. On the other hand, railway bridges, being critical infrastructures, require effective monitoring and maintenance to guarantee their safety and operation over time. The designed tool links a parametric BIM model in Revit® with an automated spreadsheet in MS Excel® through visual programming in Dynamo, generating BIM/data automation as an initial step towards a digital twin. This achieves a bidirectional flow to exchange data on the structural condition of elements. The procedure was applied to a railway bridge in use for over 100 years, representing its geometry and damage information according to technical standards. The value lies in laying the foundations for adopting preventive approaches for this key infrastructure. The BIM/data automation allows the BIM model to visually reflect the condition of the elements, depending on their damage, consolidate the inspection information, and generate a visual management tool. In conclusion, the designed BIM/data automation improves the monitoring of railway bridges compared to traditional methods, facilitating the interaction and relationship between the damage records and the actual bridge elements, laying the foundations for the construction of digital twins.