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