diff --git a/src/ansys/edb/terminal/terminals.py b/src/ansys/edb/terminal/terminals.py index 607431fe01..28f02e80ad 100644 --- a/src/ansys/edb/terminal/terminals.py +++ b/src/ansys/edb/terminal/terminals.py @@ -88,7 +88,7 @@ def cast(self): @classmethod def _create(cls, **params): - return cls.__stub.Create(messages.edge_creation_message(cls.type, **params)) + return cls.__stub.Create(messages.edge_creation_message(cls.type.value, **params)) @property def _type(self): @@ -122,7 +122,7 @@ def create(cls, padstack_instance, layer, arc): ------- PadEdge """ - return PrimitiveEdge(cls._create(padstack_instance=padstack_instance, layer=layer, arc=arc)) + return PadEdge(cls._create(padstack_instance=padstack_instance, layer=layer, arc=arc)) @property def padstack_instance(self): @@ -173,7 +173,7 @@ def create(cls, prim, point): ------- PrimitiveEdge """ - return PrimitiveEdge(cls._create(primitive=primitive, point=point)) + return PrimitiveEdge(cls._create(primitive=prim, point=point)) @property def primitive(self):