set_unique_names

photonforge.set_unique_names(*components)

Ensure the set of components and their dependencies have unique names.

A suffix '_N' is added to the names of components with non-unique names among the set.

Parameters:

components (Component) – Components that require unique names.

Returns:

Renamed components.

Return type:

list[Component]