I need to get a list of the sheets from a ViewSet and could not find a node to do so. The goal is to filter these sheets out of a full list of sheets to create a new ViewSet with the remaining sheets.
I found this post on the forum Get views from viewset? but I don’t know enough about python to understand how the OP’s problem was solved.
I tried to replicate the answer that @Kulkul gave in the post above. This is what I have.
clr.AddReference("RevitAPI") import Autodesk from Autodesk.Revit.DB import * viewSet = UnwrapElement(IN) viewSets = FilteredElementCollector(doc).OfClass(ViewSheetSet) for i in viewSets: if i.Name == viewSet.Name: vs = i else: continue OUT = [i.ToDSType(True) for i in vs.Views]
One thing I’m not sure about is if the Script that I duplicated was supposed to get the list of sheets on it’s own, or if it should have been incorporated into the OP’s Script in some way. Any help or advice wold be appreciated.
Also this is my very first post so sorry if the script or image didn’t get added right.