I’ve been banging my head against a wall these last two days. I’m hopeful that the hive will have answers for me.
I have a library of scripts that check for various model health issues and conformance to standards.
For this one, I’m trying to see the file path of the Revit Links inside of Revit Links. I’m checking to see that everyone is linking to the correct Revit Models in the Cloud Worksharing environment.
It’s easy enough to grab all of the Revit Links in the file I’m evaluating. From there, I can get the documents of the Revit Links, and then their File Paths. Win!
The next steps are where it falls apart. With Python I can collect the RevitLinkInstances from every Revit Link. I want to repeat the process above by getting the RevitLinkType from the RevitLinkInstances. Fail. Then get the Document of the RevitLinkTypes, and then the file path.
The nested RevitLinkInstances aren’t behaving as I expect them to. First, when I try to get the Type of the Instance object, the error talks about wrapping an Appearance Asset, which
Second, the script I use for getting Type and File Paths previously produces an error because it’s treating my RevitLinkInstances as string data, and I have no idea why.
Third, I can see parameters of the RevitLinkInstances but I cannot see get their values. I can’t select the element by ID, and most bewildering is that using Object.Type reports an “UnknownElement”
I’ll clean up the script ann post that in an hour or so. Hoping somebody spots something obvious. Thanks!