NamedSelection#

class ansys.geometry.core.designer.selection.NamedSelection(name: str, design: ansys.geometry.core.designer.design.Design, grpc_client: ansys.geometry.core.connection.client.GrpcClient, bodies: list[ansys.geometry.core.designer.body.Body] | None = None, faces: list[ansys.geometry.core.designer.face.Face] | None = None, edges: list[ansys.geometry.core.designer.edge.Edge] | None = None, beams: list[ansys.geometry.core.designer.beam.Beam] | None = None, design_points: list[ansys.geometry.core.designer.designpoint.DesignPoint] | None = None, preexisting_id: str | None = None)#

Represents a single named selection within the design assembly.

This class synchronizes to a design within a supporting Geometry service instance.

A named selection organizes one or more design entities together for common actions against the entire group.

Parameters:
namestr

User-defined name for the named selection.

designDesign

Design instance to which the named selection belongs.

grpc_clientGrpcClient

Active supporting Geometry service instance for design modeling.

bodieslist[Body], default: None

All bodies to include in the named selection.

faceslist[Face], default: None

All faces to include in the named selection.

edgeslist[Edge], default: None

All edges to include in the named selection.

beamslist[Beam], default: None

All beams to include in the named selection.

design_pointslist[DesignPoints], default: None

All design points to include in the named selection.

Overview#

id

ID of the named selection.

name

Name of the named selection.

bodies

All bodies in the named selection.

faces

All faces in the named selection.

edges

All edges in the named selection.

beams

All beams in the named selection.

design_points

All design points in the named selection.

__repr__

Represent the NamedSelection as a string.

Import detail#

from ansys.geometry.core.designer.selection import NamedSelection

Property detail#

property NamedSelection.id: str#

ID of the named selection.

property NamedSelection.name: str#

Name of the named selection.

property NamedSelection.bodies: list[ansys.geometry.core.designer.body.Body]#

All bodies in the named selection.

property NamedSelection.faces: list[ansys.geometry.core.designer.face.Face]#

All faces in the named selection.

property NamedSelection.edges: list[ansys.geometry.core.designer.edge.Edge]#

All edges in the named selection.

property NamedSelection.beams: list[ansys.geometry.core.designer.beam.Beam]#

All beams in the named selection.

property NamedSelection.design_points: list[ansys.geometry.core.designer.designpoint.DesignPoint]#

All design points in the named selection.

Method detail#

NamedSelection.__repr__() str#

Represent the NamedSelection as a string.