I am attempting to extract the CADLink Name from an import instance, I’m working on this now to then merge it into another Python node. I’ve found a way to get the CadLink type from an import instance, and I’ve gotten the name from a cad link type in separate python nodes, but when I combine the two into methods, I run into this error. Let me know if more information is needed.
Thanks,
It works in Case-1.
It works in Case-2 when you get elements in 2a and supply it to 2b
But it fails in Case-3 when you combine 2b and 2b in a single script.
Works like a charm as well. So reading this, it’s pretty straightforward in understanding how it works. You get the elements name, but I’m not sure what the __get__ does or what else I can do with this for future uses? Is this another method for getting information about the data?
The second method makes sense also as we are getting a built-in parameter relating to the element, which I would assume almost all Revit elements have that parameter value All_Model_Type_Name" then reading it as a string.
Are these methods ones we should utilize only if the someElement.Name method doesn’t produce the results we want? or should we always try to utilize one of the two methods you illustrated?
I will say that I have gone to almost exclusively using one of these two methods (typically the BIP) just do I don’t have to fight or figure out which ones will and won’t work. Most often the Types are the ones with the most issues from what I’ve experienced.