UnsupportedCommands#

class ansys.geometry.core.tools.unsupported.UnsupportedCommands(grpc_client: ansys.geometry.core.connection.GrpcClient, modeler: ansys.geometry.core.modeler.Modeler)#

Provides unsupported commands for PyAnsys Geometry.

Parameters:
grpc_clientGrpcClient

gRPC client to use for the geometry commands.

modelerModeler

Modeler instance to use for the geometry commands.

Overview#

set_export_id

Set the persistent id for the moniker.

get_body_occurrences_from_import_id

Get all body occurrences whose master has the given import id.

get_face_occurrences_from_import_id

Get all face occurrences whose master has the given import id.

get_edge_occurrences_from_import_id

Get all edge occurrences whose master has the given import id.

Import detail#

from ansys.geometry.core.tools.unsupported import UnsupportedCommands

Method detail#

UnsupportedCommands.set_export_id(moniker: str, id_type: PersistentIdType, value: str) None#

Set the persistent id for the moniker.

Parameters:
monikerstr

Moniker to set the id for.

id_typePersistentIdType

Type of id.

valuestr

Id to set.

UnsupportedCommands.get_body_occurrences_from_import_id(import_id: str, id_type: PersistentIdType) list[ansys.geometry.core.designer.body.Body]#

Get all body occurrences whose master has the given import id.

Parameters:
import_idstr

Persistent id

id_typePersistentIdType

Type of id

Returns:
list[Body]

List of body occurrences.

UnsupportedCommands.get_face_occurrences_from_import_id(import_id: str, id_type: PersistentIdType) list[ansys.geometry.core.designer.face.Face]#

Get all face occurrences whose master has the given import id.

Parameters:
import_idstr

Persistent id.

id_typePersistentIdType

Type of id.

Returns:
list[Face]

List of face occurrences.

UnsupportedCommands.get_edge_occurrences_from_import_id(import_id: str, id_type: PersistentIdType) list[ansys.geometry.core.designer.edge.Edge]#

Get all edge occurrences whose master has the given import id.

Parameters:
import_idstr

Persistent id.

id_typePersistentIdType

Type of id.

Returns:
list[Edge]

List of edge occurrences.