I’d like to check grids that are monitoring or not monitoring in Dynamo. Is it possible?
Thanks a lot @sovitek vitek
how to do that with Python code with Dynamo? I thought that thing of copy monitoring was not exposed in API Revit
@RubenVivancos very simple, it is a Method within the API:
import clr clr.AddReference("RevitAPI") import Autodesk from Autodesk.Revit.DB import * clr.AddReference("RevitServices") import RevitServices from RevitServices.Persistence import DocumentManager doc = DocumentManager.Instance.CurrentDBDocument #Selected Grid grid = UnwrapElement(IN) gridElement = grid.IsMonitoringLinkElement() #Collected Grids grids = FilteredElementCollector(doc).OfClass(Grid).ToElements() gridList = [g.IsMonitoringLinkElement() for g in grids] OUT = gridElement, gridList