SOLIDOS API - SolidosFindShortestPath(upHandle, downHandle)
SolidosFindShortestPath(upHandle, downHandle) - Returns the shortest route between two devices
- Input parameters
- upHandle (Dynamo: String, Visual List: Entity Name) - the handle of the starting device
- downHandle (Dynamo: String, Visual List: Entity Name) - the handle of the ending device
- Output (Dynamo: String(), Visual List: Entity Name()) - an array of device handles
If a route cannot be calculated, it means that the devices have no connections, are from different networks, or are the same device
- Errors that may occur
- "InvalidUpHandle" - the starting handle is invalid or not valid a SOLIDOS item
- "InvalidDownHandle" - the downhandle is invalid or is not a SOLIDOS item
Exemplo de uso no Visual Lisp:
(setq device1 (handent "AD01")
device2 (handent "FC15"))
(setq path (SolidosFindShortestPath device1 device2))
;( <Entity name: 362es7c0150> <Entity name: 362es7c0151> <Entity name: 362es7c0156>)
Exemplo de uso no Dynamo:
device1 = "AD01";
device2 = "FC15";
path = SolidosFindShortestPath(device1, device2);
#["456", "987", "1235"]