Skip to main content

ACP in-app scripting API 2026 R1

set

Last update: 16.07.2026

VirtualGeometry.set(shapes)

Clears the existing CAD references and creates a new one for each given shape.

Parameters

  • shapes: A list of tuples. The first item is the shape object and the second the link path (root path) of the shape.

Usage

>>> shell = db.active_model.geometry.cad_geometries['CADGeometry.1'].root_shapes['cut_surface']
>>> db.active_model.geometry.virtual_geometries['RefGeom.1'].set(shapes=[ (shell, "") ] )
or
>>> db.active_model.geometry.virtual_geometries['RefGeom.1'].set(paths=[ (None, "CADGeometry.1/cut_surface") ] )

Connect with Ansys