ok.. is there a way how can I active the raiseswitch throught xmlspawner?
you would need to add something like this to the RaiseSwitch class in RaiseSwitch.cs
CODE |
// ARTEGORDONMOD // allow the switch to be activated by setting the DoRaise property to true public bool DoRaise { set { if (value == true) { Flip(); if (RaisableItem != null && !RaisableItem.Deleted && RaisableItem.IsRaisable) { RaisableItem.Raise(); } } } }
|
and then you could activate it by just setting the DoRaise property to true on the target switch.
that is exactl what i needed, thanks