Creating and Registering a Custom Object Snap Mode

To create a custom object snap mode, you must derive a subclass from AcDbCustomOsnapMode and register it with the custom object snap manager.