Hi,
Maybe a basic question, but i didn't found any proper example who explain how to apply action on blocks extracted from a list.
No problem to deal with properties but anyway I a try to apply a method -> throw exception :'/
Using Method on Blocks List
Maybe a basic question, but i didn't found any proper example who explain how to apply action on blocks extracted from a list.
No problem to deal with properties but anyway I a try to apply a method -> throw exception :'/
Code:
IMyDoor _Door1;
IMyFunctionalBlock AnyLight;
List<IMyTerminalBlock> _TypeLights = new List<IMyTerminalBlock>();
List<IMyTerminalBlock> _GrpLights = new List<IMyTerminalBlock>();
public Program() {
_Door1 = GridTerminalSystem.GetBlockWithName("Sliding...