Hi All,
I am looking for a script that would take Areas and duplicate them as Rooms. The area and room can both exist. The Area Name and Number parameters would propagate the same values in the Room Name and Number parameters. I have tried it with ChatGPT but from what I can tell, it doesn’t work. I tried to upload the .dyn but I am new and cannot yet. Any help would be appreciated. Thx
As rooms are bound by walls and such while areas require sketch lines, this might not work out as you hope. However you can use a Room.ByLocation node, fed with a point, level, name, and number all extracted from the area.
The Areas are basically being used as Rooms so I feel like they are probably all separated. There may be a few that aren’t.
In this case (and a few others), the architect is basically using Areas instead of Rooms. Since we link their models, we cannot tag Areas so we don’t get any “Room” information. I am looking for a workaround for them where they could duplicate the Areas as Rooms so we can then tag through the link.
Start by doing this manually. What happens when you place a Room within an Area? Does the Room recognize the same boundaries? If not, you likely have to redefine the Area curves as Room Boundary curves like the others suggested.
I’ve raised your trust level so you can post a screenshot of your graph in action now. What have you tried so far and where are you running into issues?
In this case it’s likely they can just use a Room.ByLocation fed with:
- a Level element from a dictionary built from all levels using the name as keys. Extract the specific level from each area using the parameter value from the area’s “Level” paramaeter.
- a Point pulled from the area by way of the Area.Location node
- a string pulled from the area by way of the Element.GetParameterValueByName node using “Name” as the name of the parameter.
- A string pulled from the area by way of the Element.GetParameterValueByName node using “Number” as the name of the parameter.
All areas can be collected by way of all elements of category; you’ll want to have them be sure they’ve deleted any areas which no longer exist, or otherwise filter out any areas with no Area value.
The entire graph including invalid area error handling is maybe 20 nodes, less if you use design script to simplify some actions (such as filtering invalid areas), with no custom nodes Python, or chat GPT needed.