%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
erase Method
See Also  Example
vdWebLibrary Namespace > ScriptCommands Class : erase Method
Erase the default active selection entities, and clear the ActiveSelection by calling the clearSelection method. It also write to UndoHistory and script buffer

Syntax

JScript 
public function erase();

Example

C#Copy Code
//Prompt user to select entities and then prompt to move them 
    vdrawObj.scriptCommand.select(null,function (_vdcanvas) { _vdcanvas.scriptCommand.erase(); _vdcanvas.redraw();  } );

Remarks

this method write to UndoHistory and to Script buffer also. In order to update the screen view a redraw need to be called.

See Also