Table of Contents

Constructor CadCustomSnap

Namespace
OpenCAD2D.Plugins
Assembly
OpenCAD2D.Core.dll

CadCustomSnap(string, string, CadSnapFinder)

Makes a snap.

public CadCustomSnap(string name, string keyword, CadSnapFinder finder)

Parameters

name string

The name the menus, Drafting Settings and the snap tip show: "Circle top".

keyword string

The word typed to take only this snap for the next point, in either case: "CTOP". Checked when the snap is added to the host: letters and digits only, 2 to 16 long, not an AutoCAD snap keyword (END MID CEN GCE NOD QUA INT EXT INS PER TAN NEA APP PAR NON) or a word that starts with one, and not FROM, TT, M2P or MTP.

finder CadSnapFinder

Gives the points for an entity.

Exceptions

ArgumentNullException

Thrown when the name, the keyword or the finder is null.

ArgumentException

Thrown when the name is empty.