find_by_name#

classmethod NetClass.find_by_name(layout, name)#

Find a net class by name in a given layout.

Parameters:
layoutLayout

Layout to search for the net class.

namestr

Name of the net class.

Returns:
NetClass

Net class found. Check the is_null property of the returned net class to see if it exists.