How to check monitoring link of grids

Hi everyone,
I’d like to check grids that are monitoring or not monitoring in Dynamo. Is it possible?

Hello…you could try this one here…

1 Like

Thanks a lot @sovitek vitek

1 Like

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

import Autodesk
from Autodesk.Revit.DB import *

import RevitServices
from RevitServices.Persistence import DocumentManager

doc = DocumentManager.Instance.CurrentDBDocument

#Selected Grid
grid = UnwrapElement(IN[0])
gridElement = grid.IsMonitoringLinkElement()

#Collected Grids
grids = FilteredElementCollector(doc).OfClass(Grid).ToElements()
gridList = [g.IsMonitoringLinkElement() for g in grids]

OUT = gridElement, gridList

1 Like