@@ -26,6 +26,13 @@ class RoughnessRegion(Enum):
26
26
SIDE = stackup_layer_pb2 .LayerRoughnessRegionMessage .RoughnessRegion .SIDE
27
27
28
28
29
+ class EtchNetClass (Enum ):
30
+ """Enum representing etch net classes of stackup layers."""
31
+
32
+ NO_ETCH_POWER_GROUND = stackup_layer_pb2 .EtchNetClass .NO_ETCH_POWER_GROUND
33
+ ETCH_ALL_NETS = stackup_layer_pb2 .EtchNetClass .ETCH_ALL_NETS
34
+
35
+
29
36
def _set_layer_material_name_message (layer , mat_name ):
30
37
"""Convert to a ``SetLayerMaterialNameMessage`` object."""
31
38
return stackup_layer_pb2 .SetLayerMaterialMessage (layer = layer .msg , material = mat_name )
@@ -268,6 +275,19 @@ def etch_factor(self):
268
275
def etch_factor (self , etch_factor ):
269
276
get_stackup_layer_stub ().SetEtchFactor (_stackup_layer_value_message (self , etch_factor ))
270
277
278
+ @property
279
+ def etch_net_class (self ) -> EtchNetClass :
280
+ """:class:`.EtchNetClass`: Etch net class of the layer."""
281
+ return EtchNetClass (get_stackup_layer_stub ().GetEtchNetClass (self .msg ).etch_net_class )
282
+
283
+ @etch_net_class .setter
284
+ def etch_net_class (self , etch_net_class : EtchNetClass ):
285
+ get_stackup_layer_stub ().SetEtchNetClass (
286
+ stackup_layer_pb2 .StackupLayerEtchNetClassMessage (
287
+ layer = self .msg , etch_net_class = etch_net_class .value
288
+ )
289
+ )
290
+
271
291
@property
272
292
def use_solver_properties (self ):
273
293
""":obj:`bool`: Flag indicating if solver properties are used by the layer."""
0 commit comments