My google powers are failing me today, I figured this would be a simple search.
In python, I have created and duplicated views as dependent for area plans. These Duplicated views return the view ID, how do I select this view by ID so I can name the view? I already have the ID singled out in the loop so as the loop iterates, all I want to do is name the view upon duplication.
I can’t find or figure out how to access views by ID, outside of a filtercollection
CreateViewPlan() is a function which creates my views
for i in lstFloorPlan:
for j in i:
for n in dupNum:
flattens my list of newly created views. just FYI
thanks for any assistance,
## FLOOR PLAN SHEET VIEWS x = selectedLevel.Name y = x.split() x = y.index("LEVEL") + 1 z = y[x] lstFloorPlan =  lst =  dupNum = range(4) for i in dictFloorPlanSheetViews.keys(): val = dictFloorPlanSheetViews.get(i) viewName_FloorPlan = selectedLevel.Name + " - " + i newView_FloorPlan = CreateViewPlan("FloorPlan", selectedLevel, viewName_FloorPlan) lstFloorPlan.append(newView_FloorPlan) for i in lstFloorPlan: for j in i: for n in dupNum: dupViewId = j.Duplicate(ViewDuplicateOption.AsDependent) OUT = dupViewId