Has anyone got a way to check if an element has been overridden in the Revit environment (Projection Lines, Cut Patterns etc.) and create a list of these elements.
I am looking to find out what has been ‘fudged’ by some less experienced staff.
Example.
A column in View 1 is concrete and has a cut pattern of Style 1 set by its material.
But a staff member has changed the cut pattern to Style 2 in View 1.
In my current script it does not find the element if the line pattern is overridden, even though it appears to be listed in the python code ‘as pictured’ any ideas out there?
The only thing I can think of is that we are comparing ElementIds with integeres. The easiest way to fix this is to add .IntegerValue after all properties that ends with Id. like this:¨
o.CutLinePatternId.IntegerValue > 0
Try that and see if it works better, hope it does.
Hi Guys,
Something doesn’t work for me. The Python Script gives this warning:
Warning:
IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “”, line 11, in
AttributeError: ‘List[object]’ object has no attribute ‘Id’
Hi @young
Can you please start a new topic and put a link to your comment in there, this is in keeping with forum guidelines as to not compromise the content of solved topics.
I can continue to assist you once this is done
You’re dealing with a thread from 2016. Revit 19 or 20 changed to allow a background and foreground fill for elements so there’s now a property for each rather than just one.
If you’re not capable with Python, and somebody else in the world has already done the work, I always suggest to just use their nodes. E.g. this one from GeniusLoci. You can then check the values and filter your list in the Dynamo environment and you’ll probably get a lot closer to a result than you will trying to copy paste code from a 6 year old forum without much Python knowledge.