isToolApplicable

Determines whether the specified construction tool is applicable for the specified layer. A construction tool is not applicable when it appears in the template's list of excluded tools, which is available only after the template has loaded.

A construction tool may also be deemed not applicable based on the geometry type of the specified layer, provided this layer is loaded and is one of the SharedTemplate.layerIds.

Return

True if the tool is applicable for the specified layer; otherwise, false.

Since

300.0.0

Parameters

toolType

The type of geometry construction tool to check for applicability.

layerId

An ID that identifies the layer for which the construction tool is being evaluated.

Throws

The specified layerId is not one of the SharedTemplate.layerIds or is not loaded.

Template is not loaded.