Altair EEvision 2025.1 APIs
    Preparing search index...

    Type Alias SelectionHandler

    SelectionHandler: (
        this: EEvisionAPI,
        selected: DeepReadonly<ObjectInfo> | null,
        data?: unknown,
    ) => void | Promise<void>

    Handler for the case when the set of selected objects in EEvision changes.

    Type declaration

      • (
            this: EEvisionAPI,
            selected: DeepReadonly<ObjectInfo> | null,
            data?: unknown,
        ): void | Promise<void>
      • Parameters

        • this: EEvisionAPI
        • selected: DeepReadonly<ObjectInfo> | null

          the most recently selected object (or null if no object is currently selected). Note: In case of multiple selections, when one of the selected objects get deselected, the parameter is one of the objects that are still selected!

        • Optionaldata: unknown

          additional data that is passed from EEvisionAPI.SelectObj to the selection handler.

        Returns void | Promise<void>