• Checks whether a specific AcDbOsnapMode is enabled in the bitmask.

    Parameters

    • mask: number

      Object snap mode bitmask

    • mode: AcDbOsnapMode

      Object snap mode to test

    Returns boolean

    true if the mode is enabled; otherwise false

    if (acdbHasOsnapMode(mask, AcDbOsnapMode.EndPoint)) {
    // EndPoint snapping is enabled
    }