Activating tools

 

You can activate tools using the API. Tools are used to draw and modify vector objects. An active edit layer must be present in the document window to select a tool.

To request and set an active edit layer:

· Use the GetActiveLayer and SetActiveLayer transactions.

To request which drawing tool is selected in a window:

· Use the GetTool transaction.

It returns a number that indicates which tool is active.

To set the active tool:

· Use the SetTool transaction.

The selected tool is activated, and an action may occur.

To be informed when an object is placed through the user interface:

· Register the NotifyIM -- VectorObjectPlaced notification.

A message will be sent when the user places an object on an active edit layer.

See also