get_primitives#

Modeler.get_primitives(net_name=None, layer_name=None, prim_type=None, is_void=False)[source]#

Get primitives by conditions.

Parameters:
net_namestr, optional

Set filter on net_name. Default is None.

layer_namestr, optional

Set filter on layer_name. Default is None.

prim_typestr, optional

Set filter on primitive type. Default is None.

is_voidbool

Set filter on is_void. Default is ‘False’

Returns
——-
list

List of filtered primitives