API Reference > imodeljs-frontend > Tools > PrimitiveTool > onRestartTool onRestartTool MethodAbstract Called when an external event may invalidate the current tool's state. Examples are undo, which may invalidate any references to elements, or an incompatible active view change. The active tool is expected to call installTool with a new instance, or exitTool to start the default tool. onRestartTool(): void Returns - void Defined in core/frontend/src/tools/PrimitiveTool.ts Line 136 Last Updated: 13 June, 2024