isToolApplicable method

bool isToolApplicable(
  1. GeometryConstructionToolType toolType, {
  2. required int layerId,
})

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.

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.

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