I am working on a Dynamo script for Revit that generates single-line diagrams in drafting views. The script reads an Excel file, separates the circuits into rows, and classifies them (outlets, lighting, motors). Depending on the first column value (1, 2, or 3), the script places the corresponding symbol, draws lines, and adds text notes with circuit information (number of conductors, sizes, current, voltage drop, etc.).
The script works correctly when creating the first two diagrams in two different drafting views. However, when I try to create a third diagram in another drafting view, the lines and text notes are no longer visible. Dynamo still shows the preview of points and curves, but the elements are not created in Revit.
It would be much easier to share screenshots of your graph in action. Running your graph, even with the same Excel data, introduces other variables that may not represent the issue you’re having. It could be something in the Revit file that’s problematic. Or it could just be a minor issue in your graph that we could identify right away if we could see it.
Every node placing an element appears to refer back to a single user-defined view. Similarly, the excel file is read once and merely sorted, not filtered.
The View and File Path are set up ‘Is Input’ but the sheet name is not. To attempt to generate three views I’m assuming you’re making three empty drafting views and then running the script three times with three different files/view configurations. Are you executing this script in the Dynamo Environment or through Dynamo Player?
Thanks, Robert. I was using the Dynamo environment to check for possible issues. I tested it with the Player and it worked with 5 views. I did set up as inputs the nodes that allow me to change the Excel file path, as well as the node that lets me switch the view. However, I still have the problem with the symbols.