Share

CustomObjectSnapMode Class

Description

This .NET class wraps the AcDbCustomOsnapMode and AcDbCustomOsnapManager ObjectARX classes.

Whenever a keyword representing a built-in OSNAP mode can be used, the keyword of any of the registered custom OSNAP modes can also be entered. These places include:

  • establishing an OSNAP override whenever a point is being acquired.
  • establishing the equivalent of running OSNAP modes via the -OSNAP command as explained in AutoCAD User Guide and Reference.
  • invoking the AutoLISP (OSNAP) function

It can be specified as a running mode via the OSNAP command, setting the OSNAP system variable, or by on-the-fly OSNAP qualifiers for specific point acquisition as a transient OSNAP mode, and so on. Ideally, dialogs that correspond to OSNAP modes can be expanded to handle any of the registered OSNAP modes also. Typically, the LocalModeString would be visible to the user, and documented, while GlobalModeString would be used by programs intended to run on different localized versions of AutoCAD.

CustomOsnapManager defines the manager object for registered custom OSNAP modes. A custom OSNAP mode is defined by registering an instance of CustomOsnapMode with the CustomOsnapManager object. Custom modes are registered and deregistered through this object, they can be activated and deactivated, and the set of currently active modes can be queried through this object.

Class Hierarchy

Autodesk.AutoCAD.DatabaseServices.CustomObjectSnapMode

Visual Basic

Public sealed Class CustomObjectSnapMode
Inherits DisposableWrapper

C#

public sealed class CustomObjectSnapMode : DisposableWrapper;

Links

CustomObjectSnapMode Constructor, CustomObjectSnapMode Methods, CustomObjectSnapMode Properties

See Also

InputPoint, Glyph

Was this information helpful?