Hi I have used List.Contains to filter a list of all the views in a project (1) by a select list of views I want to use (2). I then want the resulting filtered list (3) to match the list structure of another list (2). Please see below.
I think you would need to used List.Contains in cross product mode the way you have it set up. This would take a long time and can be done a better way.
What are you trying to do / what is your end goal?
Thanks for your reply. I agree cross product isn’t very efficient. The graph uses a dictionary of keys (sheet numbers) and values (views on those sheets).
The end goal is to get a list of views per sheet, so the list of views output (3) needs to match the list structure (2).
Is this what you are trying to do? Sheet.GetViewportsAndViews will get all the views on a sheet. (if the sheet has not views and empty list in returned) The node is from the rhythm’s package.
Excel workbook with a list of sheets and their corresponding views is used to create a dictionary.
2a. Select sheets
2b. The sheet numbers are used to search the dictionary
2c. and return the actual revit views needed.