Shared Template
Describes features that can be created across layers within a geodatabase. Specifies default attributes, symbology, tools, and settings for geometry construction and transformation.
Since
300.0.0
Properties
Defines how the primary, related, part, or preset features are created. This definition is NULL until the shared template is loaded.
Additional information about this template.
True if this template can be shown in a template picker, false otherwise. A template that can be used to create standalone or primary features can be shown in a template picker and is marked visible. Conversely, a template that cannot independently create features should not be displayed in a template picker and is marked as not visible.
A system-generated unique identifier. This can be used to query the database for specific templates. The value is -1 for templates returned from SharedTemplateQuerySourceType.Layer source.
The SharedTemplateSource from which this template was queried. Use this to get table instances for the applicable layers, and to create and add the features from this template.
The type of the shared template.
Functions
Creates a swatch image with the template's thumbnail or symbology from the specified layer. In the absence of a thumbnail for this template, the symbology from the specified layer is used to determine a swatch image, provided this layer is loaded and is one of the SharedTemplate.layerIds.
Returns the configuration setting for the specified geometry construction tool. Use this method to get options for a selected tool. For example, GeometryConstructionToolType.Line can generate a densified line by adding extra vertices at regular intervals. The optional settings specify whether to densify, the sample distance, and the linear unit to use.
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:
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.