Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
andydandy74 committed Apr 5, 2024
1 parent 45b5087 commit 613bf65
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions nodes/2.x/python/Element.SlabShapeHasBeenModified.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *

def SlabShapeHasBeenModified(item):
sle = None
if hasattr(item, "SlabShapeEditor"): sle = item.SlabShapeEditor
elif hasattr(item, "GetSlabShapeEditor"): sle = item.GetSlabShapeEditor()
else: return False
if hasattr(sle, "SlabShapeCreases") and hasattr(sle, "SlabShapeVertices"):
if sle.SlabShapeCreases.IsEmpty == True or sle.SlabShapeVertices.IsEmpty == True: return False
else: return True
else: return False

items = UnwrapElement(IN[0])

if isinstance(IN[0], list): OUT = [SlabShapeHasBeenModified(x) for x in items]
else: OUT = SlabShapeHasBeenModified(items)

0 comments on commit 613bf65

Please sign in to comment.