So this complex piece of code is working nicely, outputting a room floorplan and ceiling plan predictably and applying their templates. (In production each plan will have a different template.) Renaming the room ceiling plan cleanly is an important step in keeping the project highly organized as the number of rooms increases into the hundreds.
However, this method is flawed because renaming the ceiling plan from the level name to the room name in Dynamo triggers a REVIT prompt the user has to click through to continue, the well known “Would you like to rename the corresponding level?” This small thing can become an obstacle on a project where people are already hesitant of Dynamo’s use. This previous question addressed the same problem in a slightly different configuration, but it doesn’t appear the forum has a solution for it yet. I did a bit of digging around for “event handlers” but couldn’t find anything helpful. Perhaps someone has worked around this before? (I’m on Dynamo 1.3.2 on REVIT 2017.2.)
If you are trying to create a floor and ceiling plan per room, why not modify the FloorPlan.PerRoom node tonjust create a ceiling plan instead of a floor plan? I believe I have done this before and it worked quite nicely. However I think I split it into two graphs to help functionality and speed.
Thanks for the tip. Why not modify the “FloorPlan.PerRoom”? has a rather straightforward explanation: That’s easier said than done depending on one’s skill level and experience. And certainly if you or anyone reading this has any insight into the matter, I’m sure I speak for other forum members when I say we would welcome any input. In the future, many users will find this thread and any solution materials you can post would be greatly appreciated. It’s a great contribution to the community. I will try to open up the node at length and work on a copy of it to see if I can figure it out but it’s really a blind leading the blind situation if I’m leading the charge. I will try to share whatever I find. While I’m a bit more conformable with a C# script; thinking like a BIM manager, this creates a challenge for deployment, especially in smaller firms lacking sophisticated deployment procedures or infrastructure. A cleanly packaged node that users can run in the Player is what I’m ultimately aiming for.
The prompt shows up when renaming a view with the same name as the level. I got around this by leaving the original view and creating duplicates that were renamed instead. That way you bypass the prompt entirely.
That was really excellent advice. I rejigged the node and everything is outputting wonderfully.
Sadly, even though the script is working seamlessly, I’ve created and edited the nodes in the archilab folder which will be an obstacle for deployment. Both of them have custom edits. Something I probably should not have neglected.