Yesterday someone gave me a great help to create a script which will automatically create detail line for each room boundary line in the project.
However when I try to run the script on a project it will draw detail line for all levels on the same view. Does someone know if there is a way to do it only for a selected level ?
Thank you so much for your help
I just tried to run the script you shared with me but it seems like I still get the line for rooms placed in another level on the same view :
Thanks for your reply. Actually even when I run the script for the first time it will draw detail line for all the rooms in the project in the active view, no matter which level they belong to.
When I check the script it seems like the rooms are not filtered by level. I made a room on level 1 and another one in level 2 but teyh still both appears in the “OUT” list of the Listfilterbyboolmask node. Do you think it could be the reason ?
That’s very odd, I cannot re-create the same issue. Perhaps there is an issue relating to the revit language (although I can’t see why) since it seems it is not detecting which rooms are on the specified level - you may try to convert the outputs from “Level.Name” and “GetParameterValueByName” nodes before going into “==”.
The “Room.Boundaries” node should be connected to the “In” output of “FilterByBoolMask” otherwise you are getting the results which are ‘false’ (i.e. not on the level specified) - you can follow this in image below where i’ve highlighted the room at level 1 in blue
You are right, the issue was relating to the revit language.
The version I am currently using is in French and I forgot to replace “Level” by “Niveau” (in French).
It is working perfectly now.
Thanks again for your great help and have a nice day !