diff --git a/src/ansys/dpf/gate/generated/capi.py b/src/ansys/dpf/gate/generated/capi.py index 00ac206fd28..4182054dced 100644 --- a/src/ansys/dpf/gate/generated/capi.py +++ b/src/ansys/dpf/gate/generated/capi.py @@ -3373,6 +3373,14 @@ def load_api(path): dll.CSPropertyField_SetFieldDefinition.argtypes = (ctypes.c_void_p, ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), ) dll.CSPropertyField_SetFieldDefinition.restype = None + if hasattr(dll, "CSPropertyField_GetSupport"): + dll.CSPropertyField_GetSupport.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), ) + dll.CSPropertyField_GetSupport.restype = ctypes.c_void_p + + if hasattr(dll, "CSPropertyField_SetSupport"): + dll.CSPropertyField_SetSupport.argtypes = (ctypes.c_void_p, ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), ) + dll.CSPropertyField_SetSupport.restype = None + if hasattr(dll, "CSPropertyField_GetName"): dll.CSPropertyField_GetName.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), ) dll.CSPropertyField_GetName.restype = ctypes.POINTER(ctypes.c_char) diff --git a/src/ansys/dpf/gate/generated/property_field_abstract_api.py b/src/ansys/dpf/gate/generated/property_field_abstract_api.py index f883af1cf3c..61ac217bc51 100644 --- a/src/ansys/dpf/gate/generated/property_field_abstract_api.py +++ b/src/ansys/dpf/gate/generated/property_field_abstract_api.py @@ -163,6 +163,14 @@ def csproperty_field_get_shared_field_definition(field): def csproperty_field_set_field_definition(field, field_definition): raise NotImplementedError + @staticmethod + def csproperty_field_get_support(field): + raise NotImplementedError + + @staticmethod + def csproperty_field_set_support(field, support): + raise NotImplementedError + @staticmethod def csproperty_field_get_name(field): raise NotImplementedError diff --git a/src/ansys/dpf/gate/generated/property_field_capi.py b/src/ansys/dpf/gate/generated/property_field_capi.py index fcc7eb4fd19..a309c8e8cab 100644 --- a/src/ansys/dpf/gate/generated/property_field_capi.py +++ b/src/ansys/dpf/gate/generated/property_field_capi.py @@ -363,6 +363,24 @@ def csproperty_field_set_field_definition(field, field_definition): raise errors.DPFServerException(sError.value) return res + @staticmethod + def csproperty_field_get_support(field): + errorSize = ctypes.c_int(0) + sError = ctypes.c_wchar_p() + res = capi.dll.CSPropertyField_GetSupport(field._internal_obj if field is not None else None, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError)) + if errorSize.value != 0: + raise errors.DPFServerException(sError.value) + return res + + @staticmethod + def csproperty_field_set_support(field, support): + errorSize = ctypes.c_int(0) + sError = ctypes.c_wchar_p() + res = capi.dll.CSPropertyField_SetSupport(field._internal_obj if field is not None else None, support._internal_obj if support is not None else None, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError)) + if errorSize.value != 0: + raise errors.DPFServerException(sError.value) + return res + @staticmethod def csproperty_field_get_name(field): errorSize = ctypes.c_int(0) diff --git a/src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll b/src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll index 759e934a01a..11aecb48ea9 100644 Binary files a/src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll and b/src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll differ diff --git a/src/ansys/dpf/gatebin/DPFClientAPI.dll b/src/ansys/dpf/gatebin/DPFClientAPI.dll index 35a880e10aa..047b18816e8 100644 Binary files a/src/ansys/dpf/gatebin/DPFClientAPI.dll and b/src/ansys/dpf/gatebin/DPFClientAPI.dll differ diff --git a/src/ansys/dpf/gatebin/libAns.Dpf.GrpcClient.so b/src/ansys/dpf/gatebin/libAns.Dpf.GrpcClient.so index 7ff9ca73869..73071083073 100644 Binary files a/src/ansys/dpf/gatebin/libAns.Dpf.GrpcClient.so and b/src/ansys/dpf/gatebin/libAns.Dpf.GrpcClient.so differ diff --git a/src/ansys/dpf/gatebin/libDPFClientAPI.so b/src/ansys/dpf/gatebin/libDPFClientAPI.so index dfd1cfedbb5..ed287957076 100644 Binary files a/src/ansys/dpf/gatebin/libDPFClientAPI.so and b/src/ansys/dpf/gatebin/libDPFClientAPI.so differ