Programming typical procedures of attachment arrangement in the system allows you to quickly arrange trays in a cable route. Bracket placement is also an important issue in choosing the optimal cable support system layout.
The RevitAPI SDK contains many common examples for working with Revit objects, but most of these examples only demonstrate general programming capabilities with RevitAPI. As a result of the systematization of the methods, programs were selected to select the optimal placement of trays and automated selection of the configuration of trays in cable support systems.
Tray databases are located in the Revit project structure and are linked to the actual tray settings through a Shared Settings file that must be connected to Revit projects before you begin. The automated calculation of the layout of cable support systems is based on the use of plug-ins and add-ons to the Autodesk Revit software. Add-ins are tested in Revit 2021 to identify new APIs versus previous API versions.
The VisualStudio2019 programming environment provides an extensive set of methods for processing tray properties and parameters, providing the necessary speed in the process of processing data from Revit projects. This circumstance is important when opening large-sized projects on laptops of average performance, since it is such equipment that is installed at the workplaces of designers. Dynamic libraries connected to projects save laptop memory, since they are used in projects only at the moment of calling the necessary program processing methods.
The developed programs in the C# make it possible to formalize the algorithms for calculating the layouts of cable support systems with the ability to automate the creation of special families for cable trays and the development of typical parametric libraries for trays of different types. Software libraries for assessing the geometric parameters of trays as they are developed increase the efficiency of calculating the layout of cable support systems and allow the designer not to perform segmentation of trays again every time, but to perform the specified procedure once for a certain standard size of the tray and use the calculation results in further projects to select the optimal layouts of cable support systems.
For better arrangement of tray attachments in cable routes, Revit needs to develop visual applications that use not only the built-in APIs, but also Windows Forms libraries and classes. The use of the visual interface is due to the fact that the Revit program interface does not fully support the functionality for processing and configuring the parameters of cable trays and additional libraries from the VisualStudio2019 distribution are required.