Share

AcDbCustomOsnapMode

Class Hierarchy

AcDbCustomOsnapMode
    AcDbCustomOsnapMode2

C++

class AcDbCustomOsnapMode;

File

dbosnap.h

Description

A custom OSNAP mode is defined by registering an instance of AcDbCustomOsnapMode with the AcDbCustomOsnapManager object.

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 or the ObjectARX acedOsnap() 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.

Links

AcDbCustomOsnapMode Methods

See Also

AcDbCustomOsnapManager, AcDbCustomOsnapInfo, AcEdInputContextReactor, AcEdInputPointFilter, AcEdInputPointManager, AcEdInputPointMonitor, AcGiGlyph

Was this information helpful?