find_by_id#

classmethod NPortComponentModel.find_by_id(comp_def, value)#

Find a component model by ID in a given component def.

Parameters:
comp_defComponentDef

Component def to search for the component model.

valueint

ID of the component model.

Returns:
ComponentModel

Component model that is found, None otherwise.