I have a script that gathers all tagged rooms and creates filled regions based off of room boundaries. When run in this specific project, none of the filled regions show up. It works fine in other models. Not sure what is preventing this. Could it be that somewhere the rooms may have lines too small to draw? Would that not yield an error?
Try to create Polycurves from that boudaries, youâll find out bad countours.
There may be gaps, self intersections and small segments.
They all seem to be created fine, and all intersections are only at corners. Still wonât draw the filled regionsâŚ
Seems like the regions are being created as they are receiving an element ID; we just arenât viewing them in the display. As such we need to do the usual âwhy canât I see thisâ exercise. Some things to try:
- Select one via the Element Id and see what view it is in.
- Disable all view templates and design options.
- Check if it is on a workset which is disabled of not displayed.
- Make sure you can manually create a filled region in the view.
- Try creating a new view and see if that fixes it.
When attempting to select in Dynamo in a new view without a view template, it says no view can be found:
In what View are the Filled Regions supposed to b e created? Just a Floor Plan, an Ceiling Plan?
Is it one View or multiple Views.
Basicly this
As such we need to do the usual âwhy canât I see thisâ exercise
Also https://www.revitforum.org/forum/revit-all-flavors/tutorials-tips-tricks/459-
Itâs just one view, and itâs a floorplan view. It works fine in other models, so really not sure why it doesnât show the regions here. The first time I tried selecting it with a view template on and view uncropped, it tried to find a filled region in the view, but went to blank space.
Can you share the .rvt and .dyn (if possible)?
I canât share the Revit file I was getting the error in (which unfortunately may be the issue) but I have attached the .dyn file.
Filled Regions from Room Tags.dyn (33.7 KB)
Also not stripped from any information you arenât allowed to share? Such as projectinformation, templates an such?
Even with that, no, I canât share the .rvt, which is unfortunate because Iâm starting to think the error lies within the model and not Dynamo.
I will have a look at the .dyn tomorrow. Donât have access to a PC with Revit / Dynamo today anymore. Or maybe the issue is resolved beforehand.
So far i havenât be able to replicate the problem (Revit 2023).
Can you share an image of how the Floor Plan looks like?
Also. Do you run the script on just one Floor Plan or multiple Floors Plans within a project?
This node does NOT refresh for example when you switch to a different Floor Plan.
Out of curiosity, why are you trying to create a filled region that represents the room boundary?
Why not use a room colour scheme ?
Just in one floor plan (the active view).
My use case is designating different hazard zones/types with different filled regions (also have a legend view on my sheets) based on the room type (storage, electrical, etc.). Never really experimented with room color schemes, but filled regions are easily adjustable if there are any shifts in a model, and can easily be changed by type.
Please look into room colour schemes. Rather than be âeasily adjustableâ, rooms and their bounding components are automatic in their adjustment.
You can create a room colour scheme based on any parameter available to rooms. So if you need to make a hazard zone parameter and associate it to rooms, do that for example:
As for the legend, have a look at colour fill legends (also automatic when updating room colours etc)
Often there is a Revit answer that doesnât require Dynamo
The regions in my script are placed and categorized into different hazard levels based on the room name itself. Is that possible to automate or are you saying you have to manually select each one?
Yes definitely possible, just collect all rooms, filter by room name then set your Hazard Level parameter appropriately based on room name. Then use your colour scheme based on hazard level param