I think this Post bridges our question…
This got me curious of how to find the dependent views with the API, so I ended up quickly writing this python script out and I think it is achieving what you’re aiming for:
[revision cloud dependent views]
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import*
clr.AddReference('RevitServices')
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
views = UnwrapElement(…
Amy,
This is good stuff. You were really close. Here’s how to make this work:
[image]
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.Elements)
clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
# Import RevitAPI
clr.AddReference("Re…
1 Like
Hi Ewan, I download your script but the nodes Color.Red and Color.Black are in red, and show the message Custom Node Not Loaded, could you please let me know the package where I can find these nodes.
Thanks,
I believe they reside in the Clockwork package.