PLCControler.py
changeset 1743 c3c3d1318130
parent 1741 dd94b9a68c61
child 1744 69dfdb26f600
equal deleted inserted replaced
1742:92932cd370a4 1743:c3c3d1318130
  2478             points = wire.GetPoints(handle != 0)
  2478             points = wire.GetPoints(handle != 0)
  2479             if handle == 0:
  2479             if handle == 0:
  2480                 result = wire.GetConnectedInfos(-1)
  2480                 result = wire.GetConnectedInfos(-1)
  2481             else:
  2481             else:
  2482                 result = wire.GetConnectedInfos(0)
  2482                 result = wire.GetConnectedInfos(0)
  2483             if result != None:
  2483             if result is not None:
  2484                 refLocalId, formalParameter = result
  2484                 refLocalId, formalParameter = result
  2485                 connections = connection.getconnections()
  2485                 connections = connection.getconnections()
  2486                 if connections is None or len(connection.getconnections()) <= idx:
  2486                 if connections is None or len(connection.getconnections()) <= idx:
  2487                     connection.addconnection()
  2487                     connection.addconnection()
  2488                 connection.setconnectionId(idx, refLocalId)
  2488                 connection.setconnectionId(idx, refLocalId)