Get elements in active view from revit links

@til.shviger If you could, please copy and paste your Python code as preformatted text. See below post
is a gif showing how you can post it as preformatted text.