Advertisement
IvaSerge

Filter not Placed Element

Jun 13th, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. import clr
  2.  
  3. #Import RevitAPI
  4. clr.AddReference("RevitAPI")
  5. import Autodesk
  6. from Autodesk.Revit.DB import *
  7.  
  8. elements = IN[0]
  9. outlist = []
  10.  
  11. for element in elements:
  12.     try:
  13.         UnwrapElement(element).Location:
  14.         outlist.append(element)
  15.     except:
  16.         pass
  17.  
  18. OUT = outlist
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement