Get CADlinks associated views

Hello everyone.
I’m checking several models and I need to monitorate If the modelers are using DWG’s inside their models. So far I’ve achieved to get all the CADLinks in the model but now I need to get the Owner Views and its name of each CADlink in order to find them easier.
I’m using a Python Node and working with the API:
First getting all the LinkCAD
cadlinks = FilteredElementCollector(doc).OfClass(CADLinkType).ToElements()
and trying to get the views
views = [doc.GetElement(link.OwnerViewId) for link in cadlinks]
But I’m only getting null values
Does anyone know what I’m doing wrong?
Thank you for your help

Hello @DavidMena ,
i’m trying a similar thing and i’m having the same problem as you, only getting null values as a result.
Did you manage to find a solution to your problem?

Greetings

Hello everyone,
just wanted to let you know, that i was able to find a way to solve this problem.
I wasn’t able to retrieve the Ownerview because the value was null according to Revit Lookup.
Instead i used two nodes from archilab to check if the linked instance is visible in a particular view.
I attached the graph in case someone else is having the same problem.

Greetings