Table of Contents

Method AddObjectSnap

Namespace
OpenCAD2D.Plugins
Assembly
OpenCAD2D.Core.dll

AddObjectSnap(CadCustomSnap)

Adds an object snap. A keyword another loaded plugin, or an earlier snap of this one, uses leaves the snap out, with a line in Problems.

public void AddObjectSnap(CadCustomSnap snap)

Parameters

snap CadCustomSnap

The snap.

Exceptions

ArgumentNullException

Thrown when the snap is null.

ArgumentException

Thrown when the keyword is not letters and digits only, 2 to 16 long, is or starts with one of AutoCAD's snap keywords (END MID CEN GCE NOD QUA INT EXT INS PER TAN NEA APP PAR NON), or is FROM, TT, M2P or MTP; or an entity type is null or not a DxfEntity.

InvalidOperationException

Thrown when Initialize has returned.