getDefaultConstructionTool

Returns the template's construction tool or a determined default. In the absence of a default construction tool for this template, the geometry type of the specified layer is used to determine a default construction tool, provided this layer is loaded and is one of the SharedTemplate.layerIds. A NULL value is expected when:

  • the template is used to create a non-spatial related record

  • the default construction tool is NULL, and the layer's geometry type is unknown

Return

The default construction tool if one can be determined; otherwise, null.

Since

300.0.0

Parameters

layerId

An ID that identifies the layer for which a default construction tool is requested.

Throws

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