Any#
- class ansys.dpf.core.any.Any(any_dpf=None, server=None)#
Common wrapper representing any supported DPF Data Types.
- Parameters:
any_dpf (ctypes.c_void_p, ansys.grpc.dpf.any_pb2.Any message, optional)
server (DPFServer, optional) – Server with channel connected to the remote or local instance. The default is
None, in which case an attempt is made to use the global server.
Notes
Class available with server’s version starting at 7.0 (Ansys 2024 R1 pre0).
Overview#
Import detail#
from ansys.dpf.core.any import Any
Method detail#
- static Any.new_from(obj, server=None)#
Return an Any instance from the given object.
- Parameters:
obj (Object wrap as an Any)
- Returns:
any – Wrapped any type.
- Return type:
- Any.__str__()#
Describe the entity.
- Returns:
description – Description of the entity.
- Return type:
str
- Any.cast(output_type=None)#
Cast the Any back to its original type.
- Parameters:
output_type (output_type, optional) – Used when the Any instance was retrieved from the server. Not necessary when the instance was created using the
ansys.dpf.core.Any.new_from()- Returns:
Original object instance
- Return type:
type
- Any.__del__()#
Delete the entry.