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 – Instances of Component.

Returns:

List renamed components.