find_by_def#

classmethod ComponentGroup.find_by_def(layout, comp_def_name)#

Find all components belonging to a given component definition.

Parameters:
layoutLayout

Layout to search for component groups.

comp_def_namestr

Name of the ComponentDef instance.

Returns:
list[ComponentGroup]

List of component groups that are found.