I’ve found some discussions about this already but none of them talked about applying a list of scope boxes to a list of floorplan views. I could apply a single scope box to a single view by following this conversation:
Filter your list of view elements to obtain the views you want to apply the scope boxes to (maybe with List.FilterByBooleanMask with View Name parameter contains “SHEET 00”) or by obtaining the sheet the view belongs to, and then you will want to sort them in the order that corresponds with your list of Scope Boxes. If you get your view list to be filtered and sorted to match your list of the scope boxes you want to apply, you can pass them all through the Element.SetParamterByName node all at once.
You could try first to set the parameter to a list of views instead of just one and take a look at what is already available on this topic. See here for instance:
Is there a way to quickly create this list of 110 views for both the scope boxes and and the floorplan views and make them match to each other? I tried a couple of options but unfortunately I can’t make it work
Are you just trying to apply the scope boxes that have the name’s of “Sheet…”? If so filter out all scope boxes which do not contain "Sheet"in the name then sort them.
Sheet 001
Sheet 002
.
.
.
You will then need some way to sort your views into the same order. How did you name the the plan views or did you apply any other properties to them?
If you are trying to make new views in regards to the link Yan_Db provided. List.OfRepeateditem and FloorPLanView.ByLevel will create new views for the count of all your scopboxes.
If you already have the views then see my post above.
Thanks for your message. That is correct, I am trying to apply 110 scope boxes named ‘Scope box Sheet 1’, ‘Scope Box Sheet 2’ and so on until ‘Scope box Sheet 110’ to a 110 floor plans named ‘Floor plan view Sheet 1’, etc until ‘Floor plan view Sheet 110’
I also found a way of how to get rid of the irrelevant scope boxes (please see image below) but still looking for help on how to match each scope box to each floor plan (i.e. Scope box Sheet-49 applied to Floor Plan view Sheet-49, etc, etc)
@Ricardo.Escobedo Apologies for my lack of further reply on your issue - I would have shown a more graphical example had I been allowed the time to do so, but your goal was rather specific and I didn’t have a file with multiple views and scope boxes named similarly to yours to provide a decent example. I would enjoy seeing an image or file of the script you came up with; if you could please upload an image and/or your .dyn and mark that as the solution to your post I think it will be an additional resource to others who are trying to achieve the same or similar outcome