IvaSerge

Untitled

Jun 13th, 2017
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 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.     if UnwrapElement(element).Location:
  13.         outlist.append(element)
  14.  
  15. OUT = outlist
Advertisement
Add Comment
Please, Sign In to add comment