Skip to main content
The component is designed to communicate intrinsic status changes via custom JavaScript events.
Events are scoped to the <ansys-adr-viewer> element and handlers should be attached to the viewer element itself. An example of connecting to the partlist changed event assuming instantiation via the previous example code:
In general, events do not contain significant data payloads, relying on properties to contain the changed state values.

Event details

There are a number of available events. Many are in common over all the renderers, but not all. gltfviewer-spaceclaim-pick details:
  • name: part name
  • path: complete “path” to the pick target
  • type: SELECTION_NONE|SELECTION_EDGE|SELECTION_FACE|SELECTION_BODY
Additional fields if type==SELECTION_EDGE or type==SELECTION_FACE:
  • min: [xmin, ymin, zmin]
  • max: [xmax, ymax, zmax]
  • vertices: [[x,y,z], …]
Additional fields if type==SELECTION_BODY:
  • min: [xmin, ymin, zmin]
  • max: [xmax, ymax, zmax]