• Toggles a specific AcDbOsnapMode in an object snap bitmask.

    If the mode is currently enabled, it will be disabled. If the mode is disabled, it will be enabled.

    Parameters

    • mask: number

      Current object snap mode bitmask

    • mode: AcDbOsnapMode

      Object snap mode to toggle

    Returns number

    Updated bitmask with the specified mode toggled

    mask = acdbToggleOsnapMode(mask, AcDbOsnapMode.MidPoint)