Skip to main content

ACP in-app scripting API 2026 R1

create_snap_to_geometry_obj

Last update: 16.07.2026

SolidModel.create_snap_to_geometry_obj(name, cad_geometry=None, oriented_selection_set=None, orientation='top', active=True, id='')

Create a new snap-to-geometry object.

Parameters

  • name: The name of the object.
  • id: The ID of the object.
  • active: Pass the active-flag of the object.
  • cad_geometry: A geometry to snap to.
  • oriented_selection_set: Oriented element set where this snap to applies.
  • orientation: Valid options: “top” and “bottom”.

Connect with Ansys