Good evening
I have a problem getting the view ID from a viewport.
Had a similar problem last year, there it was the missing unwrapping.
Any idea?
Good evening
I have a problem getting the view ID from a viewport.
Had a similar problem last year, there it was the missing unwrapping.
Any idea?
Hi,
try to remove the conversion
.ToDSType(True)
Cyril saved the day, again, thank you very much
def CurrentSelection():
selid = uidoc.Selection.GetElementIds()
return [doc.GetElement(id) for id in selid]
def ViewFromViewports():
for viewport in viewports:
viewId = viewport.ViewId
ViewFromViewportList.append(doc.GetElement(viewId))
return ViewFromViewportList