Thanks for a quick answer. I got this working: import java import jmri eep = jmri.InstanceManager.getDefault(jmri.jmrit.entryexit.EntryExitPairs) #print ( eep.getEntryExitList() ) for destPoint in eep.getNamedBeanList(): ? ? if destPoint.getState() == ACTIVE: ? ? ? ? print destPoint ? ? ? ? print destPoint.getSystemName() ? ? ? ? print '? ? clear it' ? ? ? ? eep.setSingleSegmentRoute(destPoint.getSystemName()) But last row is not implemented in 4.10 (since4.11.1) The output I get if I put a comment mark on last line is: >>> import java ... import jmri ...? ... eep = jmri.InstanceManager.getDefault(jmri.jmrit.entryexit.EntryExitPairs) ... #print ( eep.getEntryExitList() ) ...? ... for destPoint in eep.getNamedBeanList(): ...? ? ?if destPoint.getState() == ACTIVE: ...? ? ? ? ?print destPoint ...? ? ? ? ?print destPoint.getSystemName() ...? ? ? ? ?print '? ? clear it' ... #? ? ? ? eep.setSingleSegmentRoute(destPoint.getSystemName()) jmri.jmrit.entryexit.DestinationPoints@ee26d8ff ae2e9664-5541-4c5e-8412-451de18c57ea ? ? clear it So is there a way to clear it in 4.10? /Best Regards Benny Den s?n 5 aug. 2018 kl 23:13 skrev Dave Sand <ds@...>:
|