VirtualGeometry#

class ansys.acp.core.VirtualGeometry(*, name='VirtualGeometry', cad_components=None, sub_shapes=None)#

Instantiate a Virtual Geometry.

The virtual geometry can be created from a set of CAD components or from a set of SubShapes. Combining CAD Components and SubShapes is not allowed.

Parameters:
  • name (str) – Name of the Virtual Geometry.

  • cad_components (Iterable[CADComponent] | None) – CAD Components that make up the virtual geometry.

  • sub_shapes (Iterable[SubShape] | None) – SubShapes that make up the virtual geometry.

Added in ACP server version 24.2.

Methods

VirtualGeometry.add_sub_shape(cad_geometry, path)

Add a SubShape to the VirtualGeometry.

VirtualGeometry.clone(*[, unlink])

Create a new unstored object with the same properties.

VirtualGeometry.delete()

Delete the object.

VirtualGeometry.set_cad_components(...)

Set the sub-shapes to match the given CADComponents.

VirtualGeometry.store(parent)

Store the object on the server.

Attributes

VirtualGeometry.dimension

VirtualGeometry.id

Identifier of the object, used for example as key in maps.

VirtualGeometry.name

The name of the object.

VirtualGeometry.parent

The parent of the object.

VirtualGeometry.status

VirtualGeometry.sub_shapes

Examples using VirtualGeometry#

Advanced selection rules

Advanced selection rules

Thickness definition

Thickness definition

Solid Model

Solid Model

Imported ply

Imported ply