Building Information Modeling (BIM) has been one of the most significant developments in the construction industry in the last decade. BIM has been used in various stages of construction, including maintenance and operation of facilities. BIM has assisted the management of the facility to deal with a large amount of maintenance information including drawings, specifications. BIM has proven its effectiveness as a repository for various types of data in building maintenance and a tool to support decision-making in the field of maintenance. However, the optimum maintenance of the facility is not only based on quantitative data, but also on the knowledge and experience acquired by the company and the workers. These experiences may be lost forever if they are not documented due to resignation and retirement. In this research we provide a methodology for obtaining knowledge while performing maintenance of public buildings using BIM and Dynamo application using Parametric models, which provide us with a high-central framework for information storage and Visual Programming, which provides great capabilities for processing and extracting data from a model BIM, processed, categorized into design, implementation and operational knowledge, exported and re-linked to the building elements of the BIM model, up to a BIM-oriented maintenance model with all design knowledge and addressed to the design authorities.