Calculate the routes from dwg layout

48 Views Asked by At

I have a dwg 2D layout of a hanging warehouse. We have to development a WCS system, this system consist also to calculate the shortest way to reach the destination.

Is there any way to convert the DWG to a GRAPH and use the python-networkX to calculate the route? At the end I have to get a list of track route.

I can find a similar layout in this google search.

1

There are 1 best solutions below

0
ravenspoint On

I suggest you to create an application that displays the DWG layout.

The application will respond to mouse movement and clicks on the displayed layout as follows:

  • Left mouse click: Add a node to the graph (location or waypoint)
  • Right mouse click on node: Add single hop link between node and previously selected

Then you can run Dijkstra algorithm whenever you need to calculate the shortest route.

I would NOT recommend using python for this as it is far too slow.