This event is generated by the ToolPickPoint tool at each mouse movement.

syntaxSyntax:
function OnToolPickPoint(toolId, points)

Parameters

Parameter Description
toolId A numeric value that identifies the tool that generated the event.
points An array of DlxPoint objects with the coordinates of the acquired points. Check the length property of the array to determine the number of points.

Remarks

This function is called repeatedly with each movement of the mouse. The purpose of this function is to modify the graphic object under construction and show information to the user. The information for the user is displayed on the status bar and can be set by assigning a value to the variable "ToolPickPoint_Msg". See the example below.

NotaNote:

This function is called repeatedly with each movement of the mouse. In the body of the function, avoid overly complex operations that could slow down the use of the tool.

Example

See the script Draw spiral.clxjs.

See also