Originally, I created a script in Revit 2020. Now, I have updated the script and tested it in Revit 2023.
In this update, I optimized the script by reducing the number of nodes and organizing them into groups. Additionally, I decreased the dependence on custom packages. The script now only uses the Data-Shapes custom package to display the UI.
To run this script, you will need to install the Data-Shapes custom package and use the family from my sample files or create your own. Please pay attention to the parameters that my family uses in the model.
Please make sure that before you start using this script you back up the 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: Data-Shapes