diff --git a/src/ansys/edb/core/inner/messages.py b/src/ansys/edb/core/inner/messages.py index 596fe89330..0857e8028e 100644 --- a/src/ansys/edb/core/inner/messages.py +++ b/src/ansys/edb/core/inner/messages.py @@ -51,6 +51,7 @@ StringsMessage, StringsPropertyMessage, TemperatureSettingsMessage, + UInt64PropertyMessage, ValueMessage, ValuePairMessage, ValuePairPropertyMessage, @@ -369,6 +370,11 @@ def int_property_message(target, value): return IntPropertyMessage(target=target.msg, value=value) +def uint64_property_message(target, value): + """Convert to a ``UInt64PropertyMessage`` object.""" + return UInt64PropertyMessage(target=target.msg, value=value) + + def bool_property_message(target, value): """Convert to a ``BoolPropertyMessage`` object.""" return BoolPropertyMessage(target=target.msg, value=value) diff --git a/src/ansys/edb/core/simulation_setup/simulation_settings.py b/src/ansys/edb/core/simulation_setup/simulation_settings.py index 1399dfea2d..3fee130b6b 100644 --- a/src/ansys/edb/core/simulation_setup/simulation_settings.py +++ b/src/ansys/edb/core/simulation_setup/simulation_settings.py @@ -199,7 +199,7 @@ def num_via_sides(self): @num_via_sides.setter def num_via_sides(self, num_via_sides): - self.__stub.SetNumViaSides(messages.int_property_message(self, num_via_sides)) + self.__stub.SetNumViaSides(messages.uint64_property_message(self, num_via_sides)) @property def num_via_density(self):