route_length

photonforge.route_length(component, layer=None)

Measure the length of parametric routes.

Internally, this funcions adds up the path lengths for all paths in the given component for a specific layer. If the component contains multiple paths, the sum of their lengths will be returned.

Parameters:
  • component (Component) – Component with routes to be measured.

  • layer (Sequence[int] | None) – Layer to be used to search for paths. If not set, all will be inspected and the largest length is returned.

Returns:

Total path length.

Return type:

float