A node that returns all elements that are constrained with EQ or a lock?

Im looking for a package or node that returns constrains similiar to the reveal constraints tool native in Revit. Ideally I would like to be able to remove constraints as part of model cleanup. Im not sure if these functions are available in the API though. Thanks!

@J_Sanford try this one, it will remove the EQ dimensions constraints in a project environment:

import clr
from Autodesk.Revit.DB import *
from Autodesk.Revit.UI import *
import Revit

dims = IN[0]
if isinstance(dims,list): dims = UnwrapElement(dims)
else: dims = [UnwrapElement(dims)]
nDims = []
#filter multisegments dimensions
dims = [dim for dim in dims if dim.NumberOfSegments > 0]
for dim in dims:
	#filter only EQ dimensions
	if dim.LookupParameter("Equality Display").AsValueString() == "Equality Text":
		#set Equality Display parameter to Value
		dim.AreSegmentsEqual = True
		#fetch affected dimensions only 
OUT = nDims

Dope thanks!

1 Like