SHARE
TWEET

GetSystemsByBoard

IvaSerge Feb 23rd, 2019 135 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. board = UnwrapElement(IN[0])
  2. brdName = board.Name
  3. elSys = board.MEPModel.ElectricalSystems
  4.  
  5. outlist = list()
  6.  
  7. ##Щит может не содержать систем - нужна проверка
  8. if elSys:
  9.     outlist = [sys for sys in elSys if sys.PanelName == brdName]
  10.  
  11. OUT = outlist
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top