Table of Contents

Field filtergripentity

Namespace
vdWebLibrary
Assembly
JsPropertiesExtractor.dll

A user defined method that fires before an entity is added to grip collection

public gripmanager.gripEventDelegate filtergripentity

Returns

gripmanager.gripEventDelegate
A user defined method that fires before an entity is added to grip collection

Examples

For example we do not allow user to move grip points of polylines.

function _filtergripentity(e) {
if (e.entity._t === vdConst.vdPolyline_code) {
e.cancel = true;//do not allow to move grip points of polylines
}
}

Remarks

The eventargs of the function is an object with the following properties:

sender: is always the vdrawObj entity: the entity that is going to be added to the grip collection cancel: a boolean value that defines if the entity is allowed by the user to be added. By default is false and the entity is allowed. Set it to true in order the passed entity not to be added to the grip collection