This is a script that can help you to place Cable Trays dividers. There is no default option in the Revit for this so I did create a divider family and the script will place those elements on each Cable Tray.
The script will automatically adjust the length, rotation and position of dividers. The user can choose if he/she wants to run the script just for some portion of the Cable Trays or for all Cable Trays in the entire project.
Because we can have different Cable Tray widths in our project instead of the numerical movement for the Cable Tray divider the user can determine the percentage for which the divider will be moved from the center of the Cable Tray.
Please make sure that before you start using this script that you back up your existing project model.
Also, if you want to download this (and all other scripts) with my sample files please visit the Shop page.
The script uses the following Dynamo packages: GeniusLoci v.2021.11.10 Data-Shapes v.2022.2.100