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, default: 'VirtualGeometry') – Name of the Virtual Geometry.

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

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

Methods

VirtualGeometry.add_sub_shape(*args, **kwargs)

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.status

VirtualGeometry.sub_shapes