I am trying to create a script for our electrical engineers, that takes all Rooms from linked architectural model and tags them in a given view. I was just wondering if someone might think of a simple workflow to do this…
Currently, I am doing the following:
Get the linked Instance
Set the views I want to tag all the Rooms in
Get the view’s levels and match them with the ones from the link
Get all the Rooms from these levels, recreate their geometry and transform their coordinates
Check wether that geometry sits within the crop view limits and filter all the rooms, based on that
Tag filtered rooms in the specified views
Since my workflow depends on lots of geometric operations, It will probably be quite slow when dealing with numerous rooms and views, so I was just hoping someone might have a more clever idea
I have come to the point of filtering rooms by the matching levels and getting their geometry in order to check which are visible in the selected views. I have tried to do that with the isVisible node, but it seems like it does not work for elements from links. Basically, it’s almost ready now, I was just looking for a workflow that would work faster. To select the architectural link and the views you want tagged, I have used data shapes
Actually, once I do this, it stops tagging elements, even though It reports that tags are placed. So I used Room Status node only to filter the Rooms list:
Thx for your answer again Yes, links are Room Bounding and unfortunattely, with your version of the scrypt it still does not tag any rooms, even though it reports that it does. I guess it has to do with coordinates, cause links are typically placed by shared coordinates in our case. Perhaps that is why when you use Linkelement.Location it gets the right one. I guess I would need to dig in the code of Create Independent Tag node
About the rooms - yes, they are that many.
It’s a residential project with lots of small rooms and we even have much bigger ones… That’s why we need that scrypt I will try to replicate the issue in a small sample file
Allright…big project no matter you work in shared coordinates or not make sure all models share origin (just give an easier life and you had aqured the coordinates…
Yeps try to run on a sample and let me know how it works
OK, I did a quick sample with 3 levels with 2 rooms each. I selected only Level 1 and Level 2 for the test. I got only those views tagged (unlike in the project), but I still see the graph reports that 12 rooms were placed:
Once I select all room tags in the project, I really see they are 12. However, when I select all Visible in view for the two tagged views, I can only see two tags for each one, so 4 in total. I can’t really find where the other 8 are…
It seems like the node always tags all rooms, multiplied by the number of views you specified