The present disclosure provides a
system (100) and a method (200) for generating routes for flexible components that connect principal components in a predefined environment. The method (200) comprises converting (202) a
boundary representation of the principal components into a
geometric representation and defining (204) an enclosed space around the principal components based on user-defined parameters. The method (200) comprises discretizing (206) the enclosed space into a plurality of nodes, assigning (208) one or more parameters to a node to construct a
spatial structure within the enclosed space, and identifying (210) neighboring nodes among the plurality of nodes connected to the enclosed space within the
spatial structure in order to generate one or more connectors to the one or more neighboring nodes.Furthermore, the procedure (200) includes determining (212) a shortest path by identifying start and end points for each connector and generating (214) routes for the flexible component that connects the main components.